Issue#67 Move Project specific Test Tasks out of testoptions.gradle

This commit is contained in:
Gergely Hegedus 2022-04-12 11:27:40 +03:00
parent bd82a8bb51
commit d7f0ca8ccf
3 changed files with 18 additions and 18 deletions

View file

@ -33,4 +33,5 @@ apply from: 'gradlescripts/versions.gradle'
apply from: 'gradlescripts/detekt.config.gradle' apply from: 'gradlescripts/detekt.config.gradle'
apply from: 'gradlescripts/ktlint.gradle' apply from: 'gradlescripts/ktlint.gradle'
apply from: 'gradlescripts/lint.gradle' apply from: 'gradlescripts/lint.gradle'
apply from: 'gradlescripts/testoptions.gradle' apply from: 'gradlescripts/testoptions.gradle'
apply from: 'gradlescripts/test.tasks.gradle'

View file

@ -0,0 +1,16 @@
task jvmTests(dependsOn: ["app:testDebugUnitTest", "core:test", "network:test"]) {
group = 'Tests'
description = 'Run all JVM tests'
}
task robolectricTests(type: Exec) {
group = 'Tests'
description = 'Run all Robolectric tests based on the Instrumented naming convention'
// todo is there a better way?
commandLine 'sh', './gradlew', 'testDebugUnitTest', '--tests', 'org.fnives.test.*InstrumentedTest'
}
task androidTests(dependsOn: ["app:connectedDebugAndroidTest"]) {
group = 'Tests'
description = 'Run Android tests'
}

View file

@ -62,21 +62,4 @@ subprojects { module ->
} }
} }
} }
}
task jvmTests(dependsOn: ["app:testDebugUnitTest", "core:test", "network:test"]) {
group = 'Tests'
description = 'Run all JVM tests'
}
task robolectricTests(type: Exec) {
group = 'Tests'
description = 'Run all Robolectric tests based on the Instrumented naming convention'
// todo is there a better way?
commandLine 'sh', './gradlew', 'testDebugUnitTest', '--tests', 'org.fnives.test.*InstrumentedTest'
}
task androidTests(dependsOn: ["app:connectedDebugAndroidTest"]) {
group = 'Tests'
description = 'Run Android tests'
} }