Skip to content

Commit adf4597

Browse files
committed
refactor(sbg tests): add shortcut to sbg tests and run by default
1 parent 7e69283 commit adf4597

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,16 @@ task createPackage {
287287
println "Creating NativeScript Android Package"
288288
}
289289

290+
task runSbgTests (type: Exec) {
291+
doFirst {
292+
workingDir "$TEST_APP_PATH"
293+
if (isWinOs) {
294+
commandLine "cmd", "/c", "gradlew", ":static-binding-generator:test"
295+
} else {
296+
commandLine "./gradlew", ":static-binding-generator:test"
297+
}
298+
}
299+
}
290300

291301
task runTests (type: Exec) {
292302
doFirst {
@@ -298,3 +308,5 @@ task runTests (type: Exec) {
298308
}
299309
}
300310
}
311+
312+
runTests.dependsOn(runSbgTests)

0 commit comments

Comments
 (0)