Issue#13 Add separate task for robolectric tests
This commit is contained in:
parent
f248ab1081
commit
c4c2ea7c26
9 changed files with 23 additions and 22 deletions
|
|
@ -62,4 +62,20 @@ 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'
|
||||
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