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
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'
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue