From 1bca591dd1d2874ef1bb51dd47d8c0d45d4f81c0 Mon Sep 17 00:00:00 2001 From: Maksymilian Pawlak <120831+m4ksio@users.noreply.github.com> Date: Fri, 23 Feb 2018 20:48:39 +0000 Subject: [PATCH] Disable unit test for experimental projects (#2627) * Disable unit test for experimental projects --- build.gradle | 4 ++++ experimental/README.md | 3 +++ 2 files changed, 7 insertions(+) diff --git a/build.gradle b/build.gradle index 436efdab22..0a9307d4c6 100644 --- a/build.gradle +++ b/build.gradle @@ -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' diff --git a/experimental/README.md b/experimental/README.md index f58401d525..99a8957223 100644 --- a/experimental/README.md +++ b/experimental/README.md @@ -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. \ No newline at end of file