Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Use surefire:test to run unit tests only
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Sep 23, 2016
1 parent b9dbf9b commit bfcc438
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
9 changes: 1 addition & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,10 @@ timestamps {
node('Fedora') {
ansicolor {
unstash 'workspace'
sh """./mvnw test \
sh """./mvnw surefire:test
--batch-mode \
--settings .travis-settings.xml \
-DstaticAnalysis \
-Dmaven.test.failure.ignore \
-Dmaven.main.skip \
-Dmaven.test.skip \
-Dgwt.compiler.skip \
-DexcludeFrontend \
-DskipFuncTests \
-DskipArqTests \
"""
junit '**/target/surefire-reports/TEST-*.xml'
}
Expand Down
10 changes: 8 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
<maven.javadoc.version>2.9.1</maven.javadoc.version>
<surefire.useFile>false</surefire.useFile>
<surefire.version>2.19.1</surefire.version>
<!-- Applies to surefire and failsafe (if enabled) -->
<failIfNoTests>true</failIfNoTests>

<deltaspike.version>1.5.4</deltaspike.version>
<cdi.runtime>runtime</cdi.runtime>
Expand Down Expand Up @@ -1571,6 +1569,14 @@
</configuration>
</plugin>

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useFile>true</useFile>
<failIfNoTests>false</failIfNoTests>
</configuration>
</plugin>

<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
Expand Down

0 comments on commit bfcc438

Please sign in to comment.