Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <profile>
- <id>parallel</id>
- <build>
- <plugins>
- <plugin>
- <groupId>com.github.temyers</groupId>
- <artifactId>cucumber-jvm-parallel-plugin</artifactId>
- <version>${cucumber.jvm.parallel.plugin.version}</version>
- <executions>
- <execution>
- <id>generateRunners</id>
- <phase>generate-test-sources</phase>
- <goals>
- <goal>generateRunners</goal>
- </goals>
- <configuration>
- <!-- Mandatory -->
- <!-- List of package names to scan for glue code. -->
- <glue>
- <pakage>ru.abs.step_definitions</pakage>
- </glue>
- <featuresDirectory>src/test/resources/features/</featuresDirectory>
- <!-- <cucumberOutputDir>${project.build.directory}/cucumber-parallel</cucumberOutputDir>-->
- <outputDirectory>${project.build.directory}/generated-test-sources/cucumber
- </outputDirectory>
- <!-- These are optional, with the default values -->
- <!-- Where to output the generated tests -->
- <!-- <outputDirectory>${project.build.directory}/generated-test-sources/cucumber</outputDirectory>-->
- <!-- The directory, which must be in the root of the runtime classpath, containing your feature files. -->
- <!-- <featuresDirectory>${cucumber.options.features}</featuresDirectory>-->
- <!-- Directory where the cucumber report files shall be written -->
- <cucumberOutputDir>target/cucumber-parallel</cucumberOutputDir>
- <!-- List of cucumber plugins. When none are provided the json formatter is used. For more
- advanced usage see section about configuring cucumber plugins -->
- <plugins>
- <!-- <plugin>-->
- <!-- <name>org.fxclub.qa.cucumber2.ConsoleOutputPlugin</name>-->
- <!-- <noOutput>true</noOutput>-->
- <!-- </plugin>-->
- <plugin>
- <name>io.qameta.allure.cucumber2jvm.AllureCucumber2Jvm</name>
- <noOutput>true</noOutput>
- </plugin>
- <plugin>
- <name>json</name>
- </plugin>
- <plugin>
- <name>null_summary</name>
- </plugin>
- </plugins>
- <!-- CucumberOptions.strict property -->
- <strict>true</strict>
- <!-- CucumberOptions.monochrome property -->
- <monochrome>false</monochrome>
- <!-- The tags to run, maps to CucumberOptions.tags property. Default is no tags. -->
- <!--<tags>-->
- <!--<tag>@tagName</tag>-->
- <!--</tags>-->
- <!-- Generate TestNG runners instead of JUnit ones. -->
- <!-- <useTestNG>true</useTestNG>-->
- <!-- The naming scheme to use for the generated test classes. One of 'simple' or 'feature-title' -->
- <!-- <namingScheme>pattern</namingScheme>-->
- <!-- The class naming pattern to use. Only required/used if naming scheme is 'pattern'.-->
- <!-- <namingPattern>{c}</namingPattern>-->
- <tags>
- <tag>@pp</tag>
- </tags>
- <!-- One of [SCENARIO, FEATURE]. SCENARIO generates one runner per scenario. FEATURE generates a runner per feature. -->
- <parallelScheme>FEATURE</parallelScheme>
- <!-- Specify a custom template for the generated sources (this is a path relative to the project base directory) -->
- <!-- <customVmTemplate>${cucumber.custom.vm.template}</customVmTemplate>-->
- <!-- Specify a custom package name for generated sources. Default is no package.-->
- <!-- <packageName>cucumber.testng.generated</packageName>-->
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${maven.surefire.plugin.version}</version>
- <configuration>
- <forkCount>5</forkCount>
- <reuseForks>true</reuseForks>
- <testFailureIgnore>true</testFailureIgnore>
- <printSummary>false</printSummary>
- <argLine>
- -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
- </argLine>
- <includes>
- <include>**/Parallel*IT.class</include>
- </includes>
- <systemPropertyVariables>
- <allure.results.directory>${project.build.directory}/allure-results
- </allure.results.directory>
- </systemPropertyVariables>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.aspectj</groupId>
- <artifactId>aspectjweaver</artifactId>
- <version>${aspectj.version}</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
- </profile>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement