Actual Result: Running test suite opens new browser for every new scenario irrespective of same or new feature file.
What did you expect to happen?
Expected Result: serenity.restart.browser.for.each=feature shouldn't have restarted the browser for different scenarios under same feature file. Browser should have open & closed per feature file.
This is working perfectly fine with below JUnit 4 runner but not with @Suite:
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
plugin = {"pretty"},
features = "src/test/resources/features"
)
public class JUnit4Runner {
}
Serenity BDD version
4.0.29
JDK version
17
Execution environment
No response
How to reproduce the bug.
Sample project with JUnit4 Runner & JUnit Platfor Suite Runner
What happened?
Create more that 1 feature files having 2 or more scenarios per feature file.
Create cucumber runner as below:
Actual Result: Running test suite opens new browser for every new scenario irrespective of same or new feature file.
What did you expect to happen?
Expected Result: serenity.restart.browser.for.each=feature shouldn't have restarted the browser for different scenarios under same feature file. Browser should have open & closed per feature file.
This is working perfectly fine with below JUnit 4 runner but not with @Suite:
Serenity BDD version
4.0.29
JDK version
17
Execution environment
No response
How to reproduce the bug.
Sample project with JUnit4 Runner & JUnit Platfor Suite Runner