Skip to content
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

Closed
yulinqi opened this issue Dec 19, 2019 · 7 comments
Closed

No consolidated html report for multi module maven project #73

yulinqi opened this issue Dec 19, 2019 · 7 comments

Comments

@yulinqi
Copy link

yulinqi commented Dec 19, 2019

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:

  1. under Project level root:
    /target/site/reports/.. ---> This is good, I see html and Json files from module A and B

  2. Module A root: ---> There is no folder like ./target/site. The index.html file for module A is not here.

  3. Module B root: ---> This is no folder like ./target/site. The index.html file for module B is not here.

  4. 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.

@wakaleo
Copy link
Member

wakaleo commented Dec 19, 2019

Multi module aggregation is not currently supported.

@yulinqi
Copy link
Author

yulinqi commented Dec 20, 2019

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!

@wakaleo
Copy link
Member

wakaleo commented Dec 20, 2019

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.

@wakaleo
Copy link
Member

wakaleo commented Jan 28, 2020

This should be fixed in 2.1.1 - the consolidated reports will be produced in the module containing the Serenity tests.

@wakaleo wakaleo closed this as completed Jan 29, 2020
@bijuvateswarath
Copy link

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.

@bijuvateswarath
Copy link

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:

  1. under Project level root:
    /target/site/reports/.. ---> This is good, I see html and Json files from module A and B
  2. Module A root: ---> There is no folder like ./target/site. The index.html file for module A is not here.
  3. Module B root: ---> This is no folder like ./target/site. The index.html file for module B is not here.
  4. 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.

Just curious , is this working for you now ? What is the correct configuration ?

@Deepak3991
Copy link

@wakaleo Hey John, is this issue resolved now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants