From ba3c0f247875e8422ac023b71f4c54c4a9cec773 Mon Sep 17 00:00:00 2001 From: Alpar Torok Date: Thu, 12 Jul 2018 08:41:07 +0000 Subject: [PATCH] Move build integration tests out of :buildSrc project (#31961) This way building buildSrc will not be delayed for all invocations, and will be less disruptive if integration tests fail --- buildSrc/build.gradle | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 4e31de08829cc..3d100daf7d65f 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -128,6 +128,10 @@ if (project == rootProject) { } mavenCentral() } + test { + include "**/*Tests.class" + exclude "**/*IT.class" + } } /***************************************************************************** @@ -152,6 +156,18 @@ if (project != rootProject) { jarHell.enabled = false thirdPartyAudit.enabled = false + // tests can't be run with randomized test runner + // it's fine as we run them as part of :buildSrc + test.enabled = false + task integTest(type: Test) { + exclude "**/*Tests.class" + include "**/*IT.class" + testClassesDirs = sourceSets.test.output.classesDirs + classpath = sourceSets.test.runtimeClasspath + inputs.dir(file("src/testKit")) + } + check.dependsOn(integTest) + // TODO: re-enable once randomizedtesting gradle code is published and removed from here licenseHeaders.enabled = false