Issue#13 Add separate task for robolectric tests

This commit is contained in:
Gergely Hegedus 2022-01-27 03:21:55 +02:00
parent f248ab1081
commit c4c2ea7c26
9 changed files with 23 additions and 22 deletions

View file

@ -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'
}