pranuta99
5 years agoNew Member
How to test multiple conditions in the 'Then' step of a CucumberBDD test?
0 We are using CucumberBDD for our tests. For assertions we use JUnit. Now in our Given, When, Then steps we use multiple 'And' steps which do variety of activities. Until this point this is f...
- 5 years ago
tookythey're looking for an equivalent to JUnit 4s Error Collector.
https://junit.org/junit4/javadoc/4.12/org/junit/rules/ErrorCollector.html
This is not supported by by Cucumber but you can emulate it by storing all failed assertions somewhere and throwing them all in an after hook. This issue came up before in the past:
https://github.com/cucumber/cucumber-jvm/issues/771