Open mrpet88 opened 1 year ago
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 (Searching for a term
)
After upgrading the serenity core and changed the names it worked. But is 3.9.7 version a stable version that I could use ?
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
Running one scenario:
Running on parallel:
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 : https://github.com/serenity-bdd/serenity-core/issues/3176 . I will take a look
@mrpet88 , I have pushed my changes here: https://github.com/cliviu/serenity-core/tree/screenshots_on_failures Let my know please if you can try it.
@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'