-
Notifications
You must be signed in to change notification settings - Fork 99
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
Introduce mandatory Scenario State #255
Comments
There's also |
This commit adds a new boolean attribute "required" to both ScenarioState and ExpectedScenarioState. If set to true on a field within a stage, corresponding tests will fail automatically if the state hasn't been provided. fixes TNG#255
This commit adds a new boolean attribute "required" to both ScenarioState and ExpectedScenarioState. If set to true on a field within a stage, corresponding tests will fail automatically if the state hasn't been provided. fixes TNG#255
This commit adds a new boolean attribute "required" to both ScenarioState and ExpectedScenarioState. If set to true on a field within a stage, corresponding tests will fail automatically if the state hasn't been provided. fixes TNG#255
This commit adds a new boolean attribute "required" to both ScenarioState and ExpectedScenarioState. If set to true on a field within a stage, corresponding tests will fail automatically if the state hasn't been provided. fixes TNG#255
This commit adds a new boolean attribute "required" to both ScenarioState and ExpectedScenarioState. If set to true on a field within a stage, corresponding tests will fail automatically if the state hasn't been provided. fixes TNG#255
This commit adds a new boolean attribute "required" to both ScenarioState and ExpectedScenarioState. If set to true on a field within a stage, corresponding tests will fail automatically if the state hasn't been provided. fixes TNG#255
There is a problem with the new feature. When you have a test method that is annotated with |
I think this would be rather dificult to fix in a clean way. Feel free to revert for now. |
It was actually quite easy to fix :-) |
I wasn't aware that something like |
It would be useful to have an attribute
mandatory = true
in the@ScenarioState
annotation. If this is set, JGiven will fail if no such@ScenarioState
would have been provided.Example:
The text was updated successfully, but these errors were encountered: