1+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3+ <modelVersion >4.0.0</modelVersion >
4+
5+ <groupId >com.browserstack</groupId >
6+ <artifactId >cucumber-jvm-java-browserstack</artifactId >
7+ <version >0.0.1-SNAPSHOT</version >
8+ <packaging >jar</packaging >
9+
10+ <name >cucumber-jvm-java-browserstack</name >
11+ <url >http://maven.apache.org</url >
12+
13+ <properties >
14+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15+ <cucumber .jvm.parallel.version>2.2.0</cucumber .jvm.parallel.version>
16+ <surefire .maven.plugin.version>2.19.1</surefire .maven.plugin.version>
17+ <acceptance .test.parallel.count>10</acceptance .test.parallel.count>
18+ </properties >
19+
20+ <dependencies >
21+
22+ <dependency >
23+ <groupId >info.cukes</groupId >
24+ <artifactId >cucumber-java</artifactId >
25+ <version >1.2.5</version >
26+ </dependency >
27+
28+ <dependency >
29+ <groupId >info.cukes</groupId >
30+ <artifactId >cucumber-junit</artifactId >
31+ <version >1.2.5</version >
32+ </dependency >
33+
34+ <dependency >
35+ <groupId >org.seleniumhq.selenium</groupId >
36+ <artifactId >selenium-java</artifactId >
37+ <version >3.0.1</version >
38+ <scope >test</scope >
39+ </dependency >
40+
41+ <dependency >
42+ <groupId >junit</groupId >
43+ <artifactId >junit</artifactId >
44+ <version >4.12</version >
45+ <scope >test</scope >
46+ </dependency >
47+
48+ <dependency >
49+ <groupId >org.apache.commons</groupId >
50+ <artifactId >commons-io</artifactId >
51+ <version >1.3.2</version >
52+ </dependency >
53+
54+ <dependency >
55+ <groupId >com.browserstack</groupId >
56+ <artifactId >browserstack-local-java</artifactId >
57+ <version >1.0.0</version >
58+ </dependency >
59+
60+ </dependencies >
61+
62+ <build >
63+ <plugins >
64+ <plugin >
65+ <artifactId >maven-compiler-plugin</artifactId >
66+ <version >3.3</version >
67+ <configuration >
68+ <source >1.6</source >
69+ <target >1.6</target >
70+ </configuration >
71+ </plugin >
72+ <plugin >
73+ <groupId >org.apache.maven.plugins</groupId >
74+ <artifactId >maven-surefire-plugin</artifactId >
75+ <version >${surefire.maven.plugin.version} </version >
76+ <executions >
77+ <execution >
78+ <id >acceptance-test</id >
79+ <phase >integration-test</phase >
80+ <goals >
81+ <goal >test</goal >
82+ </goals >
83+ <configuration >
84+ <forkCount >${acceptance.test.parallel.count} </forkCount >
85+ <reuseForks >true</reuseForks >
86+ <includes >
87+ <include >**/*IT.class</include >
88+ </includes >
89+ </configuration >
90+ </execution >
91+ </executions >
92+ </plugin >
93+ <plugin >
94+ <artifactId >maven-resources-plugin</artifactId >
95+ <version >3.0.2</version >
96+ <executions >
97+ <execution >
98+ <id >copy-resources</id >
99+ <!-- here the phase you need -->
100+ <phase >validate</phase >
101+ <goals >
102+ <goal >copy-resources</goal >
103+ </goals >
104+ <configuration >
105+ <outputDirectory >target/test-classes/com/yourcompany/cucumberjvm</outputDirectory >
106+ <resources >
107+ <resource >
108+ <directory >src/test/resources</directory >
109+ <filtering >true</filtering >
110+ </resource >
111+ </resources >
112+ </configuration >
113+ </execution >
114+ </executions >
115+ </plugin >
116+ <plugin >
117+ <groupId >com.github.temyers</groupId >
118+ <artifactId >cucumber-jvm-parallel-plugin</artifactId >
119+ <version >${cucumber.jvm.parallel.version} </version >
120+ <executions >
121+ <execution >
122+ <id >generateRunners</id >
123+ <phase >validate</phase >
124+ <goals >
125+ <goal >generateRunners</goal >
126+ </goals >
127+ <configuration >
128+ <!-- Mandatory -->
129+ <!-- comma separated list of package names to scan for glue code -->
130+ <glue >com.browserstack.stepdefs</glue >
131+ <!-- These are the default values -->
132+ <!-- Where to output the generated Junit tests -->
133+ <outputDirectory >${project.build.directory} /generated-test-sources/features</outputDirectory >
134+ <!-- The diectory containing your feature files. -->
135+ <featuresDirectory >src/test/java/resources/features</featuresDirectory >
136+ <cucumberOutputDir >${project.build.directory} /cucumber_reports/test_results</cucumberOutputDir >
137+ <!-- comma separated list of output formats -->
138+ <format >junit</format >
139+ <!-- CucumberOptions.strict property -->
140+ <strict >true</strict >
141+ <!-- CucumberOptions.monochrome property -->
142+ <monochrome >true</monochrome >
143+ <!-- The tags to run, maps to CucumberOptions.tags property -->
144+ <tags >"~@ignore"</tags >
145+
146+ <namingScheme >pattern</namingScheme >
147+ <!-- The class naming pattern to use. Only required/used if naming scheme is 'pattern'.-->
148+ <namingPattern >{f}_Parallel{c}IT</namingPattern >
149+
150+ <!-- If set to true, only feature files containing the required tags shall be generated. -->
151+ <!-- Excluded tags (~@notMe) are ignored. -->
152+ <filterFeaturesByTags >true</filterFeaturesByTags >
153+ </configuration >
154+ </execution >
155+ </executions >
156+ </plugin >
157+ </plugins >
158+ </build >
159+
160+ </project >
0 commit comments