Skip to content

Commit 0b81b10

Browse files
committed
Move skipIT/onlyIT properties into separate test tasks
1 parent 98f7a92 commit 0b81b10

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

build.gradle.kts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,14 @@ tasks.withType(Test::class) {
105105

106106
tasks.test {
107107
exclude("**/Pnpm*Test*")
108-
if (project.hasProperty("skipIT")) {
109-
exclude("**/*_integTest*")
110-
} else if (project.hasProperty("onlyIT")) {
111-
include("**/*_integTest*")
112-
}
108+
}
109+
110+
tasks.register<Test>("unitTests") {
111+
exclude("**/*_integTest*")
112+
}
113+
114+
tasks.register<Test>("integrationTests") {
115+
include("**/*_integTest*")
113116
}
114117

115118
tasks.register<Test>("pnpmTests") {

0 commit comments

Comments
 (0)