-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent, non-OO or non-declarative tests should be improved #48
Comments
@llorllale/z please, pay attention to this issue |
@victornoel let's follow the same path as in yegor256/cactoos#588 |
@0crat in |
@llorllale Job #48 is now in scope, role is |
Bug was reported, see §29: +15 point(s) just awarded to @victornoel/z |
@llorllale I'd like to do this. |
@0crat wait until llorllale/cactoos-matchers#9 (comment) is merged |
@victornoel please close this issue. It was solved in #58 |
@elenavolokhova/z please review this job completed by @Vatavuk/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed |
The job #48 is now out of scope |
@0crat quality good |
Quality review completed: +8 point(s) just awarded to @elenavolokhova/z |
I noticed during my last PR that the quality standards of cactoos-http's tests are not at their best.
In particular we have many different ways of asserting facts depending on the test class:
Matchers.equalTo()
ornew EqualTo()
to check equality while most of the timeInputHasContent
orTextHasString
would be perfect (see also Matchers that take String should also take Text cactoos#836).Map.get
whileMatchers.hasEntry
(or its OO equivalentIsMapContaining
) could make things more declarative.Scalar.value()
whileSclaraHasValue
could be used.Matcher
's class constructor instead of the static factory method fromMatchers
. For example usenew StringEndsWith()
instead ofMatchers.endsWith()
.I propose to fix this as soon as possible before cactoos-http becomes bigger and it becomes cumbersome to fix all those problems.
The text was updated successfully, but these errors were encountered: