Skip to content

Commit

Permalink
Move build integration tests out of :buildSrc project (#31961)
Browse files Browse the repository at this point in the history
This way building buildSrc will not be delayed for all invocations, and
will be less disruptive if integration tests fail
  • Loading branch information
alpar-t authored Jul 12, 2018
1 parent ac4e0f1 commit ba3c0f2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ if (project == rootProject) {
}
mavenCentral()
}
test {
include "**/*Tests.class"
exclude "**/*IT.class"
}
}

/*****************************************************************************
Expand All @@ -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

Expand Down

0 comments on commit ba3c0f2

Please sign in to comment.