From 081c3ea43bf1867fda8a934cd2f00a4b6335fd58 Mon Sep 17 00:00:00 2001 From: ialarmedalien Date: Tue, 21 Feb 2023 17:01:42 -0800 Subject: [PATCH] filter out long tests (fingers crossed) --- .github/workflows/test.yml | 5 +++-- build.gradle | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3e68fb4b..cce84576 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -168,13 +168,14 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 - if: matrix.test_cmd == "test_quick_coverage" + if: ${{ matrix.test_cmd }} == 'test_quick_coverage' with: fail_ci_if_error: true - name: upload jacoco report uses: actions/upload-artifact@v3 - if: matrix.test_cmd != "test_quick_coverage" + if: ${{ matrix.test_cmd }} != 'test_quick_coverage' with: name: coverage${{matrix.test_cmd}}-${{matrix.mongo}}.exec path: build/jacoco/test${{matrix.test_cmd}}.exec + if-no-files-found: warn diff --git a/build.gradle b/build.gradle index 1e032b2c..fffffff0 100644 --- a/build.gradle +++ b/build.gradle @@ -294,7 +294,9 @@ task testNoLongTests(type: Test) { description = "run all tests except the slow tests" systemProperty "test.cfg", testConfig forkEvery 1 - exclude "**/test/**/**LongTest.java" + filter { + excludeTestsMatching "*LongTest" + } } // output from coverage tasks is saved to build/reports/jacoco/