allure-maven icon indicating copy to clipboard operation
allure-maven copied to clipboard

Children modules executor.json wrongly overwritten for aggregate report

Open lalmeras opened this issue 7 years ago • 3 comments

I'm submitting a ...

  • [x] bug report
  • [ ] feature request
  • [ ] support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

When aggregate report is used, all executors are reported with the name of the parent module.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

Create a project with a submodule. submodule must provide test results and activate allure reportSet report; parent module must activate reportSet aggregate.

Run

# generate child
mvn site
# generate aggregate
mvn site

Generated aggregated report show an executor named with the parent module name instead of the child module name.

What is the expected behavior?

Executor should be named with the child module name

Where is the bug

aggregate report (AllureAggregateMojo) triggers AllureGenerateMojo#copyExecutorInfo for each inputDirectories, so for each child module allure-results folder. It overwrites the correctly generated file (generated by report on child module) with a new one with buildName =

I think that copyExecutorInfo should be called only for inputDirectories related to the current module, even when aggregate report is done.

What is the motivation / use case for changing the behavior?

Report consistency

Please tell us about your environment:

  • Allure version: 2.5.0
  • Test framework: junit4 (not test framework related I think)
  • Allure adaptor: allure-junit4 2.0-BETA22
  • Generate report using: [email protected]

lalmeras avatar Feb 12 '18 23:02 lalmeras

Here is an example of broken report (each Igloo - Parent should be a different label):

executors

lalmeras avatar Feb 12 '18 23:02 lalmeras

Any feedback on my report ? If I work on a PR based on my analysis, any chance to see it released ?

lalmeras avatar May 13 '18 20:05 lalmeras

Hi any update in this issue, i am not getting Maven and Igloo-Parent, i am creating the executor.json file from the code and I have only 1 attribute in it that is the tester name {"Tester":"ABCD"}, not sure what I am doing wrong but I am getting a hate symbol and name is displayed as "Unknown Capture "

suhail23790 avatar Mar 28 '20 15:03 suhail23790