Skip to content

Commit

Permalink
filter out long tests (fingers crossed)
Browse files Browse the repository at this point in the history
  • Loading branch information
ialarmedalien committed Feb 22, 2023
1 parent f9c8752 commit 081c3ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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/<testName>
Expand Down

0 comments on commit 081c3ea

Please sign in to comment.