Slackbot
11/09/2022, 9:47 AMVampire
11/09/2022, 9:51 AMCristianGM
11/09/2022, 9:55 AM./gradlew :whatever:test -DincludeCategories=cat1./gradlew :whatever:test -DincludeCategories=cat2JUnitOptions.includeCategories(String...)CristianGM
11/09/2022, 10:04 AMVampire
11/09/2022, 10:09 AMgetTestFrameworkPropertyPropertyVampire
11/09/2022, 10:10 AMuseJUnit()testFrameworkProperty.set(testFrameworkProperty.map { ... }CristianGM
11/09/2022, 10:11 AMVampire
11/09/2022, 10:17 AMStackOverflowErrorCristianGM
11/09/2022, 10:21 AMjava.lang.StackOverflowErrorVampire
11/09/2022, 10:23 AMCristianGM
11/09/2022, 10:26 AMVampire
11/09/2022, 10:27 AMCristianGM
11/09/2022, 10:28 AMVampire
11/09/2022, 10:29 AMVampire
11/09/2022, 10:30 AMVampire
11/09/2022, 10:32 AMCategoriesVampire
11/09/2022, 10:32 AMVampire
11/09/2022, 10:35 AMCategoryFilterCristianGM
11/09/2022, 10:40 AMCristianGM
11/09/2022, 11:15 AMtasks.withType(Test).configureEach {testTask ->
    testTask.testFrameworkProperty.set( provider {
        def tf = new JUnitTestFramework(testTask, (DefaultTestFilter) testTask.getFilter())
        Provider<String> includedCategories = providers.systemProperty("includeCategories")
        if (includedCategories.isPresent()) {
            (tf.options as JUnitOptions).includeCategories(includedCategories.get().split(","))
        }
        return tf
    })
}includeCategoriesCristianGM
11/09/2022, 11:17 AMtestFrameworkPropertyVampire
11/09/2022, 11:46 AMVampire
11/09/2022, 11:47 AM