test only the fast ones by default when you run `gradlew test`
The full suite is run when you run `gradlew check` or `gradlew build`
@@ -50,14 +50,19 @@ protobuf {
test {
systemProperty "io.improbable.keanu.defaultRandom.seed", '1'
systemProperty "dtype", 'double'
+ useJUnit {
+ excludeCategories 'io.improbable.keanu.testcategory.Slow'
+ }
}
-task testFastOnes(type: Test) {
+task testSlowOnes(type: Test) {
useJUnit {
- excludeCategories 'io.improbable.keanu.testcategory.Slow'
+ includeCategories 'io.improbable.keanu.testcategory.Slow'
}
}
+check.dependsOn(testSlowOnes)
+
// Add default user/pass so it's not needed if only building and not publishing to Nexus
if (!hasProperty('nexusUser')) {
ext.nexusUser = ''
