temyers / cucumber-jvm-parallel-plugin

Maven plugin to help running Cucumber features in parallel
Apache License 2.0
129 stars 121 forks source link

unable to aggregate multiple .json/.html into single report(how to do that) #177

Closed natkrish closed 5 years ago

natkrish commented 6 years ago

Hi, I currently, I have the following set up in my pom. However, upon running them using mvn clean compile test - the tests run e2e and also it generates multiple .json/.html file in the above folder. But I need one single report with all the test runs. Can you explain on how I can achieve this?

image image image

berlinets commented 6 years ago

Hi @natkrish ! You can aggregate all these results by maven-cucumber-reporting plugin

            <plugin>
                <groupId>net.masterthought</groupId>
                <artifactId>maven-cucumber-reporting</artifactId>
                <version>${maven-cucumber-reporting.version}</version>
                <executions>
                    <execution>
                        <id>execution</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <projectName>vdr-tests</projectName>
                            <outputDirectory>${project.build.directory}/cucumber-parallel/cucumber-html-reports</outputDirectory>
                            <cucumberOutput>${project.build.directory}/cucumber-parallel/</cucumberOutput>
                            <parallelTesting>true</parallelTesting>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

It will be looks like

2018-09-05_18-36-23 2018-09-05_18-37-22

Rameshwar-Shiral commented 5 years ago

Hi @natkrish ,

You can check out below plugin as well.

https://github.com/trivago/cluecumber-report-plugin