Iam using Selenium-Cucumber maven framework with Junit. Now when I run the test in parallel, a simple html report is generating. How can we generate each individual extent reports separately in each run without over writing? Below is the plugin configuration in POM file :
<plugin>
<groupId>com.github.temyers</groupId>
<artifactId>cucumber-jvm-parallel-plugin</artifactId>
<version>2.2.0</version>
<executions>
<execution>
<id>generateRunners</id>
<phase>validate</phase>
<goals>
<goal>generateRunners</goal>
</goals>
<configuration>
<glue>src/test/java/stepDefinition/baseDefinition</glue>
<featuresDirectory>src/test/resources</featuresDirectory>
<cucumberOutputDir>target/cucumber-parallel</cucumberOutputDir>
<format>json,html</format>
<tags>"~@ignored"</tags>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19</version>
<configuration>
<forkCount>10</forkCount>
<reuseForks>true</reuseForks>
<includes>
<include>**/Parallel*IT.class</include>
</includes>
</configuration>
</plugin>
</plugins>
Where should I write the code for Extent reports ? also where should we mention about the extent report plugin? If we are not using parallel execution, we will be simply add the Extent Report plugin in the TestRunner.java . But here, for parallel execution, where do we specify the Extent report plugins and its details ? Iam very thankful if you guys help me with a perfect solution. Thanks in advance.