-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
BUG: Browser is not restarting when using runner class with junit suite parameters #3193
Comments
The sample project doesn't compile. |
I'm not seeing this behaviour with 3.9.7 - could you check with that version? |
Yes 3.9.7 works, but I also found out that it was also happening because the two scenarios I was trying to run had exactly the same name ( |
Yes, 3.9.7 is stable. |
@wakaleo since this is open. Is there a known issue with screenshots on failures and parallel execution? I have a reproducible example if you want I can give another example repo. |
I am not aware of such an issue |
On same repo -> https://github.com/mrpet88/serenity-cucumber-test-project |
I won't have time to look at this soon: could you take a look and raise a PR? |
I could try at least. Can you give me a small direction on where should I look for fixing? |
I can reproduce it, it looks like we have a bug, reported also here : #3176 . I will take a look |
@mrpet88 , I have pushed my changes here: https://github.com/cliviu/serenity-core/tree/screenshots_on_failures |
@cliviu is there a public snapshot version I could use? Or do I need to build the jar? |
Currently there is no publicversion |
Are there somewhere instuctions on how to use the branch as dependency? Not sure if I am missing something here but cant seem to be able to build the project |
No problem, just wait for the next release |
@cliviu should this work under new 4.0.1 version? |
Run sample project with
clean test -Dcucumber.filter.tags="@MyTest"
When running with junit suite parameters:
And with serenity.conf values:
Then browser is not restarting.
Observe
that if tests run with the classic cucumber runner class (and with
useJUnitPlatform()
in gradle deactivated)Then browser is restarting as expected.
Repo to reproduce:
https://github.com/mrpet88/basicProjects/tree/main/src
Other info:
serenityCoreVersion = '3.6.x'
The text was updated successfully, but these errors were encountered: