Issue#67 Move Project specific Test Tasks out of testoptions.gradle
This commit is contained in:
parent
bd82a8bb51
commit
d7f0ca8ccf
3 changed files with 18 additions and 18 deletions
|
|
@ -34,3 +34,4 @@ 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'
|
||||||
16
gradlescripts/test.tasks.gradle
Normal file
16
gradlescripts/test.tasks.gradle
Normal 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'
|
||||||
|
}
|
||||||
|
|
@ -63,20 +63,3 @@ 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'
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue