Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Predictive Test Selection for local builds #5170

Merged
merged 2 commits into from Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions build.gradle.kts
Expand Up @@ -44,6 +44,14 @@ allprojects {
}
}

subprojects {
tasks.withType<Test> {
predictiveSelection {
enabled.set(System.getenv("CI") == null)
}
}
}

val analysisDir = file(projectDir)
val baselineFile = file("$rootDir/config/detekt/baseline.xml")
val configFile = file("$rootDir/config/detekt/detekt.yml")
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Expand Up @@ -44,6 +44,7 @@ plugins {
// check https://gradle.com/enterprise/releases with new versions. GE plugin version should not lag behind Gradle version
id("com.gradle.enterprise") version "3.10.3"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.7.2"
id("com.gradle.enterprise.test-distribution") version "2.3.5"
}

val isCiBuild = System.getenv("CI") != null
Expand Down