Skip to content

Commit f2c876b

Browse files
committed
Skip junit test category filtering for test tasks name simpleTests
Do not filter tests based on category when running a simpleTests task. This allows us to have tests that do not depend on the cdm-test-utils project.
1 parent f8d829a commit f2c876b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

gradle/any/testing.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ tasks.withType(Test).all {
1717

1818
useJUnit {
1919
// if we are not explicitly trying to run all tests, allow some categories to be ignored
20-
if (!runAllTests) {
20+
// test tasks named 'simpleTests' do not depend on cdm-test-utils, so do not apply category
21+
// filters (e.g. :native-compression:libaec-jna:simpleTests)
22+
if (!runAllTests && !name.equals('simpleTests')) {
2123
if (isJenkins) {
2224
excludeCategories 'ucar.unidata.util.test.category.NotJenkins'
2325
}

0 commit comments

Comments
 (0)