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

An aggregated report isn't generated in custom folder for multimodule projects #86

Open
nekhvoya opened this issue Feb 17, 2022 · 3 comments

Comments

@nekhvoya
Copy link

We have a multimodule project, each module has their own tests. The structure is the following:
└───parent
└───serenity-reports
├───pom.xml
└───child1
└───src
├───main
│ ├───java
│ ├───resources
├───test
│ ├───java
│ ├───resources
│ └─── serenity.conf
├───pom.xml
└───child2
└───src
├───main
│ ├───java
│ ├───resources
├───test
│ ├───java
│ ├───resources
│ └─── serenity.conf
├───pom.xml

In the parent pom.xml there are the following configuration of the serenity-maven-plugin

<plugin>
   <groupId>net.serenity-bdd.maven.plugins</groupId>
   <artifactId>serenity-maven-plugin</artifactId>
   <version>${serenity.version}</version>
   <dependencies>
      <dependency>
         <groupId>net.serenity-bdd</groupId>
         <artifactId>serenity-core</artifactId>
         <version>${serenity.version}</version>
      </dependency>
   </dependencies>
   <executions>
      <execution>
         <id>serenity-reports</id>
         <phase>post-integration-test</phase>
         <goals>
            <goal>aggregate</goal>
         </goals>
      </execution>
   </executions>
</plugin>

And the following properties in the serenity.conf files of each module:

serenity{
    outputDirectory  = ../../serenity-reports
}

When we were using version of serenity and serenity-maven-plugin 2.2.0, one aggregated report was generated in the serenity-reports dir located under the root directory (where all tests (from all the modules) could be found).
However, when we upgraded serenity to version 3.1.10, the results are generated but without the index.html file and as a results the test report cannot be opened and viewed.

@wakaleo
Copy link
Member

wakaleo commented Feb 17, 2022

Aggregate reports are not supported for multi-module projects.

@nekhvoya
Copy link
Author

Please note the the described behaviour was working in version of serenity 2.2.0

@wakaleo
Copy link
Member

wakaleo commented Feb 22, 2022

It's probably a regression then. The simplest work-around is to run it from the module directory, not from the root directory.

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

2 participants