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
In JUnit 4 failure cases were captured using 'rerun' like below:
@RunWith(Cucumber.class)
@CucumberOptions(
plugin = {"pretty", "rerun:target/failed-scenarios/FailedCases.txt"},
features = "src/test/resources/features"
)
public class TestRunner {}
Which can be run using below Junit4 runner
@RunWith(Cucumber.class)
@CucumberOptions(
plugin = {"pretty"},
features = "@target/failed-scenarios/FailedCases.txt"
)
public class TestReRunner {}
Q: However in JUnit5, 'FailedCases.txt' gets generated by mentioning rerun in 'PLUGIN_PROPERTY_NAME'. File gets generated too, but there is no way to execute that file.
Can someone please guide for re-running failed cases using Cucumber JUnit5 ?
The text was updated successfully, but these errors were encountered:
For Maven you could use the exec Maven plugin and bind it to the test phase. You would not use the suite in this case, you're programatically running JUnit.
In JUnit 4 failure cases were captured using 'rerun' like below:
Which can be run using below Junit4 runner
Q: However in JUnit5, 'FailedCases.txt' gets generated by mentioning rerun in 'PLUGIN_PROPERTY_NAME'. File gets generated too, but there is no way to execute that file.
Can someone please guide for re-running failed cases using Cucumber JUnit5 ?
The text was updated successfully, but these errors were encountered: