-
Notifications
You must be signed in to change notification settings - Fork 21
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
Extensibility of Assertion
#156
Comments
@paulodamaso/z please, pay attention to this issue |
@paulodamaso @llorllale Ready to implement if green-lighted. |
@paulodamaso I think the first two use cases make sense:
WDYT? |
@victornoel WDYT? |
@andreoss @llorllale @paulodamaso sorry for the late answer on this :) Basically, I think it's a good idea to introduce an interface yes. At first I was thinking like @llorllale with his comment about At the same time, I think that if we need multiple assertions, then we should write multiple test methods. Why would we want to group them in one place? So, I propose to start with a simpler ambition:
So, @andreoss @llorllale @paulodamaso @fabriciofx (bringing you in the discussion ;), each of those item of the proposal are open to discussion, what do you think? |
Not sure if directly related to this discussion, but the problem I see with
In order for
This sequentially leads to a shorter boiler-plate free form of writing tests (proposed in https://github.com/pragmatic-objects/oo-tests):
On naming, it seems now that |
Assertion
2 is a final class without an interface.It blocks the user from
Assertion
with additional logicAnd also violates "He Works by Contracts"1 principle of EO.
Examples of use cases:
@EnabledIf
from Junit 5Assertions.assertAll
for Junit 5Proposal:
Affirmation
(after the method)The text was updated successfully, but these errors were encountered: