Skip to content

Commit

Permalink
Disable unit test for experimental projects (corda#2627)
Browse files Browse the repository at this point in the history
* Disable unit test for experimental projects
  • Loading branch information
m4ksio authored Feb 23, 2018
1 parent fd491d9 commit 1bca591
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ allprojects {
if (System.getProperty("test.maxParallelForks") != null) {
maxParallelForks = Integer.valueOf(System.getProperty("test.maxParallelForks"))
}

if (project.path.startsWith(':experimental') && System.getProperty("experimental.test.enable") == null) {
enabled = false
}
}

group 'net.corda'
Expand Down
3 changes: 3 additions & 0 deletions experimental/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ either be moved into the main modules and go through code review, or be deleted.
Code placed here can be committed to directly onto master at any time as long as it doesn't break the build
(no compile failures or unit test failures). Any commits here that break the build will simply be rolled back.

To help reduce the build times, unit tests for experimental projects have been disabled and will NOT run alongside
the whole project tests run via Gradle. Add parameter ```experimental.test.enable``` (example command is ```gradlew test -Dexperimental.test.enable```
to enable those tests.

0 comments on commit 1bca591

Please sign in to comment.