Advertisement
Guest User

My POM

a guest
Jun 11th, 2019
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.67 KB | None | 0 0
  1.  <profile>
  2.             <id>parallel</id>
  3.             <build>
  4.                 <plugins>
  5.                     <plugin>
  6.                         <groupId>com.github.temyers</groupId>
  7.                         <artifactId>cucumber-jvm-parallel-plugin</artifactId>
  8.                         <version>${cucumber.jvm.parallel.plugin.version}</version>
  9.                         <executions>
  10.                             <execution>
  11.                                 <id>generateRunners</id>
  12.                                 <phase>generate-test-sources</phase>
  13.                                 <goals>
  14.                                     <goal>generateRunners</goal>
  15.                                 </goals>
  16.                                 <configuration>
  17.                                     <!-- Mandatory -->
  18.                                     <!-- List of package names to scan for glue code. -->
  19.                                     <glue>
  20.                                         <pakage>ru.abs.step_definitions</pakage>
  21.                                     </glue>
  22.                                     <featuresDirectory>src/test/resources/features/</featuresDirectory>
  23.                                     <!--                                    <cucumberOutputDir>${project.build.directory}/cucumber-parallel</cucumberOutputDir>-->
  24.                                     <outputDirectory>${project.build.directory}/generated-test-sources/cucumber
  25.                                     </outputDirectory>
  26.                                     <!-- These are optional, with the default values -->
  27.                                     <!-- Where to output the generated tests -->
  28.                                     <!--                                    <outputDirectory>${project.build.directory}/generated-test-sources/cucumber</outputDirectory>-->
  29.                                     <!-- The directory, which must be in the root of the runtime classpath, containing your feature files.  -->
  30.                                     <!--                                    <featuresDirectory>${cucumber.options.features}</featuresDirectory>-->
  31.                                     <!-- Directory where the cucumber report files shall be written  -->
  32.                                     <cucumberOutputDir>target/cucumber-parallel</cucumberOutputDir>
  33.                                     <!-- List of cucumber plugins. When none are provided the json formatter is used. For more
  34.                                        advanced usage see section about configuring cucumber plugins -->
  35.                                     <plugins>
  36.                                         <!--                                        <plugin>-->
  37.                                         <!--                                            <name>org.fxclub.qa.cucumber2.ConsoleOutputPlugin</name>-->
  38.                                         <!--                                            <noOutput>true</noOutput>-->
  39.                                         <!--                                        </plugin>-->
  40.                                         <plugin>
  41.                                             <name>io.qameta.allure.cucumber2jvm.AllureCucumber2Jvm</name>
  42.                                             <noOutput>true</noOutput>
  43.                                         </plugin>
  44.                                         <plugin>
  45.                                             <name>json</name>
  46.                                         </plugin>
  47.                                         <plugin>
  48.                                             <name>null_summary</name>
  49.                                         </plugin>
  50.                                     </plugins>
  51.                                     <!-- CucumberOptions.strict property -->
  52.                                     <strict>true</strict>
  53.                                     <!-- CucumberOptions.monochrome property -->
  54.                                     <monochrome>false</monochrome>
  55.                                     <!-- The tags to run, maps to CucumberOptions.tags property. Default is no tags. -->
  56.                                     <!--<tags>-->
  57.                                     <!--<tag>@tagName</tag>-->
  58.                                     <!--</tags>-->
  59.                                     <!-- Generate TestNG runners instead of JUnit ones. -->
  60.                                     <!--                                    <useTestNG>true</useTestNG>-->
  61.                                     <!-- The naming scheme to use for the generated test classes.  One of 'simple' or 'feature-title' -->
  62.                                     <!--                                    <namingScheme>pattern</namingScheme>-->
  63.                                     <!-- The class naming pattern to use.  Only required/used if naming scheme is 'pattern'.-->
  64.                                     <!--                                    <namingPattern>{c}</namingPattern>-->
  65.                                     <tags>
  66.                                         <tag>@pp</tag>
  67.                                     </tags>
  68.                                     <!-- One of [SCENARIO, FEATURE]. SCENARIO generates one runner per scenario.  FEATURE generates a runner per feature. -->
  69.                                     <parallelScheme>FEATURE</parallelScheme>
  70.                                     <!-- Specify a custom template for the generated sources (this is a path relative to the project base directory) -->
  71.                                     <!--                                    <customVmTemplate>${cucumber.custom.vm.template}</customVmTemplate>-->
  72.                                     <!-- Specify a custom package name for generated sources. Default is no package.-->
  73.                                     <!--                                    <packageName>cucumber.testng.generated</packageName>-->
  74.                                 </configuration>
  75.                             </execution>
  76.                         </executions>
  77.                     </plugin>
  78.                     <plugin>
  79.                         <groupId>org.apache.maven.plugins</groupId>
  80.                         <artifactId>maven-surefire-plugin</artifactId>
  81.                         <version>${maven.surefire.plugin.version}</version>
  82.                         <configuration>
  83.                             <forkCount>5</forkCount>
  84.                             <reuseForks>true</reuseForks>
  85.                             <testFailureIgnore>true</testFailureIgnore>
  86.                             <printSummary>false</printSummary>
  87.                             <argLine>
  88.                                 -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
  89.                             </argLine>
  90.                             <includes>
  91.                                 <include>**/Parallel*IT.class</include>
  92.                             </includes>
  93.                             <systemPropertyVariables>
  94.                                 <allure.results.directory>${project.build.directory}/allure-results
  95.                                 </allure.results.directory>
  96.                             </systemPropertyVariables>
  97.                         </configuration>
  98.                         <dependencies>
  99.                             <dependency>
  100.                                 <groupId>org.aspectj</groupId>
  101.                                 <artifactId>aspectjweaver</artifactId>
  102.                                 <version>${aspectj.version}</version>
  103.                             </dependency>
  104.                         </dependencies>
  105.                     </plugin>
  106.                 </plugins>
  107.  
  108.             </build>
  109.         </profile>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement