Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/gradle_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ jobs:
run: ./gradlew test --tests "io.reactivex.rxjava4.validators.*" --stacktrace --no-daemon
- name: Build RxJava
run: ./gradlew build --stacktrace

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2.23.0
if: always() # important: run even if tests failed
with:
files: |
**/build/test-results/**/TEST-*.xml
**/build/test-results/**/*.xml
**/build/test-results/testNG/TEST-*.xml
comment_mode: failures
fail_on: test failures
check_name: "🧪 RxJava Test Results"
report_individual_runs: false

- name: Upload to Codecov
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
- name: Generate Javadoc
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/gradle_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ jobs:
run: ./gradlew test --tests "io.reactivex.rxjava4.validators.*" --stacktrace --no-daemon
- name: Build RxJava
run: ./gradlew build --stacktrace --no-daemon

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2.23.0
if: always() # important: run even if tests failed
with:
files: |
**/build/test-results/**/TEST-*.xml
**/build/test-results/**/*.xml
**/build/test-results/testNG/TEST-*.xml
comment_mode: failures
fail_on: test_failures
check_name: "🧪 RxJava Test Results"
report_individual_runs: false

prerelease:
needs: build
runs-on: ubuntu-latest
Expand Down
9 changes: 7 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,13 @@ tasks.register('testNG', Test) {

maxParallelForks = 1

// Ensure JUnit-compatible XML output in the standard location
reports {
html.required = true
junitXml.required = true
junitXml.outputLocation = file("${buildDir}/test-results/test") // ← important
}

// Optional: fine-tune includes/excludes
// include '**/*NgTest.class', '**/*TestNG.class'
// exclude '**/*JUnitTest.class'
Expand All @@ -212,8 +219,6 @@ tasks.register('testNG', Test) {
warn.events = testLoggingConfig
warn.exceptionFormat = "full"
}
reports.html.required = true
reports.junitXml.required = true // if you want JUnit-compatible XML too
}

check.dependsOn testNG
Expand Down
Loading