Skip to content

Commit a800e20

Browse files
kimoonkimash211
authored andcommitted
Trigger scalatest plugin in the integration-test phase (apache#93)
* Trigger scalatest plugin in the integration-test phase * Clean up unnecessary config section
1 parent 0e6df11 commit a800e20

File tree

1 file changed

+27
-0
lines changed
  • resource-managers/kubernetes/integration-tests

1 file changed

+27
-0
lines changed

resource-managers/kubernetes/integration-tests/pom.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,33 @@
216216
</execution>
217217
</executions>
218218
</plugin>
219+
<plugin>
220+
<!-- Triggers scalatest plugin in the integration-test phase instead of
221+
the test phase, so that test jobs are copied over beforehand.
222+
See copy-test-spark-jobs execution of maven-dependency-plugin above. -->
223+
<groupId>org.scalatest</groupId>
224+
<artifactId>scalatest-maven-plugin</artifactId>
225+
<executions>
226+
<execution>
227+
<id>test</id>
228+
<goals>
229+
<goal>test</goal>
230+
</goals>
231+
<configuration>
232+
<!-- The negative pattern below prevents integration tests such as
233+
KubernetesSuite from running in the test phase. -->
234+
<suffixes>(?&lt;!Suite)</suffixes>
235+
</configuration>
236+
</execution>
237+
<execution>
238+
<id>integration-test</id>
239+
<phase>integration-test</phase>
240+
<goals>
241+
<goal>test</goal>
242+
</goals>
243+
</execution>
244+
</executions>
245+
</plugin>
219246
</plugins>
220247

221248
</build>

0 commit comments

Comments
 (0)