Closed patrickvkb closed 7 months ago
I did experience similar issues in a multi-module project. In my case, several gradle tasks failed. The issue seemed to be serenity settings from the first submodule applied to the other submodules. I faced similar issues with the plugin version 3.9.8 and 4.0.27.
I think it's related to gradle module parallelism. When I disable parallelism in my gradle.properties file or with the --no-parallelism
, I don't reproduce the issues anymore.
@gallardo @wakaleo @patrickvkb @tnielens-centrica --no-parallelism does not help solving it. So please share, how else can you get around this problem?
What version of the plugin are you using? I think we downgraded to version 3.*
to make it work.
group: 'net.serenity-bdd', name: 'serenity-gradle-plugin', version: '4.0.46' group: "net.serenity-bdd", name: "serenity-core", version: '4.0.46'
@tnielens Does it mean that 4. v is broken and forbidden to use it?
Downgrading to 3.9.8 means you are using an older version of the library and won't have access to the latest selenium etc. I don't use Gradle, so it would be quicker to dig into the code and propose a PR to fix the issue.
@wakaleo I'll take a look at this one. Could you move forward with #19 before? It's a large refactoring which I'd like to base the investigation here on.
Version 4.0.27 of the plugin does not separate configuration and action phases of the different serenity tasks, which #19 addresses.
I'm running the plugin with revision ba6a994 (current main branch after #19 merge) and don't reproduce the multi modules and parallelism issues described above.
serenity-cucumber-starter.zip
Description and How To Reproduce
Starting from the serenity-cucumber-starter I created a multi-module project as given in the attached ZIP file. All used version are listed in the root
build.gradle
:Performing then the following shell commands:
it is seen that the
SERENITY-JUNIT-xxxx.xml
files are found in thesubmodule2/target/site/serenity
directory but that the aggregate Serenity report was generated in thesubmodule1/target/site/serenity
directory using non-existingxml
files there.Workaround
Using version 3.9.8 of the plugin, all seems to work fine.
Timid Hint to the Possible Cause
During some debugging of the
serenity-gradle-plugin
, it appeared that the value of theproject.build.directory
property in theSystemPropertiesConfiguration.environmentVariables
always equals the directory of the first submodule. Could not find out as yet how this situation occurs. Help here would be very much appreciated.