Skip to content

Commit

Permalink
Merge pull request #160 from fcojfernandez/its-execution
Browse files Browse the repository at this point in the history
Prevent ITs from being executed by default
  • Loading branch information
craigdbarber committed Nov 7, 2019
2 parents 7029191 + 25c152d commit 9dd93d4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ mvn test
```

##### Integration Tests
* By default, the integration tests are not executed. In case you are interested in executing
them, disable the `skipITs` property.
* The following environment variables are required to run the integration tests. 5, 6, and 7 are
only required when running a windows integration test.

Expand All @@ -74,7 +76,7 @@ mvn test

* Run the following:
```
mvn verify
mvn verify -DskipITs=false
```

###### Windows Integration Test
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pipeline {
sh "mvn clean package -ntp"

// run tests
sh "mvn verify -ntp"
sh "mvn verify -ntp -DskipITs=false"
}

sh "jenkins/saveAndCompress.sh"
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pipeline {
sh "mvn clean package -ntp"

// run tests
sh "mvn verify -ntp -Dit.windows=true"
sh "mvn verify -ntp -Dit.windows=true -DskipITs=false"
}

sh "jenkins/saveAndCompress.sh"
Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<skip.surefire.tests>${skipTests}</skip.surefire.tests>
<skipITs>true</skipITs>
<it.windows>false</it.windows>
<configuration-as-code.version>1.14</configuration-as-code.version>
<powershell.version>1.3</powershell.version>
Expand Down Expand Up @@ -293,6 +294,7 @@
</execution>
</executions>
<configuration>
<skipITs>${skipITs}</skipITs>
<disableXmlReport>true</disableXmlReport>
<useFile>false</useFile>
<systemPropertyVariables>
Expand Down

0 comments on commit 9dd93d4

Please sign in to comment.