Skip to content

Commit 580fb93

Browse files
committed
Added the 'cucumber' maven profile to run only the cucumber scenarios
1 parent 2a0f52a commit 580fb93

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

pom.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,45 @@
168168
</plugin>
169169
</plugins>
170170
</build>
171+
<profiles>
172+
<profile>
173+
<id>cucumber</id>
174+
<activation>
175+
<activeByDefault>false</activeByDefault>
176+
</activation>
177+
<build>
178+
<plugins>
179+
<plugin>
180+
<groupId>org.apache.maven.plugins</groupId>
181+
<artifactId>maven-failsafe-plugin</artifactId>
182+
<version>3.5.1</version>
183+
<executions>
184+
<execution>
185+
<goals>
186+
<goal>integration-test</goal>
187+
<goal>verify</goal>
188+
</goals>
189+
</execution>
190+
</executions>
191+
<configuration>
192+
<argLine>
193+
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
194+
</argLine>
195+
<includes>
196+
<include>**/cucumber/*Tests.java</include>
197+
</includes>
198+
</configuration>
199+
<dependencies>
200+
<dependency>
201+
<groupId>org.aspectj</groupId>
202+
<artifactId>aspectjweaver</artifactId>
203+
<version>${aspectj.version}</version>
204+
</dependency>
205+
</dependencies>
206+
</plugin>
207+
</plugins>
208+
</build>
209+
</profile>
210+
</profiles>
171211

172212
</project>

0 commit comments

Comments
 (0)