Skip to content

Commit

Permalink
Move skipIT/onlyIT properties into separate test tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
deepy committed Aug 17, 2023
1 parent 98f7a92 commit 0b81b10
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,14 @@ tasks.withType(Test::class) {

tasks.test {
exclude("**/Pnpm*Test*")
if (project.hasProperty("skipIT")) {
exclude("**/*_integTest*")
} else if (project.hasProperty("onlyIT")) {
include("**/*_integTest*")
}
}

tasks.register<Test>("unitTests") {
exclude("**/*_integTest*")
}

tasks.register<Test>("integrationTests") {
include("**/*_integTest*")
}

tasks.register<Test>("pnpmTests") {
Expand Down

0 comments on commit 0b81b10

Please sign in to comment.