Skip to content

Commit a69201b

Browse files
Configuring junit and Spock in same project - separate executions in same phase #147
1 parent 6d924d0 commit a69201b

File tree

1 file changed

+29
-13
lines changed

1 file changed

+29
-13
lines changed

pom.xml

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@
7575
<artifactId>arquillian-junit-container</artifactId>
7676
<scope>test</scope>
7777
</dependency>
78+
<dependency>
79+
<groupId>org.jboss.arquillian.spock</groupId>
80+
<artifactId>arquillian-spock-container</artifactId>
81+
<version>${org.jboss.arquillian.spock}</version>
82+
<scope>test</scope>
83+
</dependency>
7884
<dependency>
7985
<groupId>org.jboss.arquillian.protocol</groupId>
8086
<artifactId>arquillian-protocol-servlet</artifactId>
@@ -86,12 +92,6 @@
8692
<scope>test</scope>
8793
<type>jar</type>
8894
</dependency>
89-
<dependency>
90-
<groupId>org.jboss.arquillian.spock</groupId>
91-
<artifactId>arquillian-spock-container</artifactId>
92-
<version>${org.jboss.arquillian.spock}</version>
93-
<scope>test</scope>
94-
</dependency>
9595
<dependency>
9696
<groupId>org.spockframework</groupId>
9797
<artifactId>spock-core</artifactId>
@@ -209,12 +209,28 @@
209209
<plugin>
210210
<groupId>org.apache.maven.plugins</groupId>
211211
<artifactId>maven-surefire-plugin</artifactId>
212-
<version>2.14.1</version>
213-
<configuration>
214-
<includes>
215-
<include>**/*Specification.java</include>
216-
</includes>
217-
</configuration>
212+
<version>2.16</version>
213+
<executions>
214+
<execution>
215+
<id>junit</id>
216+
<phase>test</phase>
217+
<goals>
218+
<goal>test</goal>
219+
</goals>
220+
</execution>
221+
<execution>
222+
<id>spock</id>
223+
<phase>test</phase>
224+
<goals>
225+
<goal>test</goal>
226+
</goals>
227+
<configuration>
228+
<includes>
229+
<include>**/*Specification.java</include>
230+
</includes>
231+
</configuration>
232+
</execution>
233+
</executions>
218234
</plugin>
219235
<plugin>
220236
<groupId>org.apache.maven.plugins</groupId>
@@ -518,7 +534,7 @@
518534
</build>
519535
</profile>
520536
</profiles>
521-
537+
522538
<reporting>
523539
<plugins>
524540
<plugin>

0 commit comments

Comments
 (0)