-
Notifications
You must be signed in to change notification settings - Fork 21
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
No consolidated html report for multi module maven project #73
Comments
Multi module aggregation is not currently supported. |
Hi, John In this case, I don't expect a consolidated report for all modules, but hope you can still generate and preserve report for each individual module. From maven log, I can tell they are produced, but just NOT saved to file system at the end of "aggregate" goal per module. thanks! |
It’s not a high priority at the moment, but please feel free to look at the maven plugin code. Working with relative directories in modules is non trivial. |
This should be fixed in 2.1.1 - the consolidated reports will be produced in the module containing the Serenity tests. |
Just wondering is this possible in latest version to consolidate sub modules reports into one ? Could you point to correct configuration ? if it is not available, would like to know , if I can contribute to this feature. |
Just curious , is this working for you now ? What is the correct configuration ? |
@wakaleo Hey John, is this issue resolved now? |
My project has three modules, like module A, B, C, and every module has its own cucumber/serenity test.
If I run "mvn verify" for each module, then test execution and seniority reporting are good, and I can find aggregated report from the module target folder.
If I run "mvn verify" from top project level, then test execution and raw report files can still be found for each module ( depends on the location in seniority config file). However the aggregated report "index.html" is only available for the last module.
From maven console logs, I can see index.html is indeed generated for each module, but in the end, only the last one is saved to the file system. other index.html files ( maybe other files) are lost or overwritten in the process.
In the serenity config files for all modules, I have the following entry, so all raw reports are to be saved to parent project folder.
<serenity.outputDirectory = ../target/site/reports>
The folder strucure after execution:
under Project level root:
/target/site/reports/.. ---> This is good, I see html and Json files from module A and B
Module A root: ---> There is no folder like ./target/site. The index.html file for module A is not here.
Module B root: ---> This is no folder like ./target/site. The index.html file for module B is not here.
Module C root:
./target/site/serenity/. ---> I can see index.html file here, but content is only for module C. Raw report files for module C are moved to here as well ( instead of under /target/site/reports/). I assume this is the work of "aggregate" function.
In short, I feel the "aggregate" goal is only preserved for module C. Please advise if there is any workaround to keep aggregated report for each module.
The text was updated successfully, but these errors were encountered: