You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running this on JUnit, it marks the test case as ignored due to an AssumptionViolatedException.
Looking at the JGiven (HTML5) report it marks the scenario as failed.
Given you use firefox !failed
/* ...*/
FAILED: org.junit.AssumptionViolatedException: got: "phantomjs", expected: equalToIgnoringCase("firefox")
There is currently no "Ignored" ExecutionStatus within JGiven, only Failed and Pending (including the filters in the HTML5 report). Should there be a new state Ignored?
Best regards,
Alexander
The text was updated successfully, but these errors were encountered:
Ok, it should definitely be treated as pending and not as failed. Whether it is useful to introduce an Ignored state, I am not sure. In particular, tests that are Ignored by JUnit by the @ignore annotation, might even not be trackable by JGiven.
The solution is as follows now: when throwing an AssumptionViolationException, the scenario will not appear in the report at all. This is identical to the case where a test is annotated with @Skipped
@janschaefer I think that org.testng.SkipException should be treated the same way.
I would like to use AssertJ assumptions to skip a TestNG test but when SkipException is thrown the test is marked as failed instead.
In a BDD web testing setup I use a scenario "Given you use Firefox", that leads to an
When running this on JUnit, it marks the test case as ignored due to an AssumptionViolatedException.
Looking at the JGiven (HTML5) report it marks the scenario as failed.
There is currently no "Ignored" ExecutionStatus within JGiven, only Failed and Pending (including the filters in the HTML5 report). Should there be a new state Ignored?
Best regards,
Alexander
The text was updated successfully, but these errors were encountered: