Show failed tests in CI

This commit is contained in:
William Brawner 2023-09-27 07:24:21 -06:00
parent e10ed36838
commit 9d42cee5e3
2 changed files with 15 additions and 0 deletions

View file

@ -15,6 +15,14 @@ jobs:
uses: gradle/gradle-build-action@v2 uses: gradle/gradle-build-action@v2
- name: Run checks with Gradle Wrapper - name: Run checks with Gradle Wrapper
run: ./gradlew --no-daemon --no-configuration-cache check run: ./gradlew --no-daemon --no-configuration-cache check
- name: Publish JUnit Results
uses: dorny/test-reporter@v1
if: always()
with:
name: Unit Tests
path: "*/build/test-results/test/*.xml"
reporter: java-junit
fail-on-error: true
# automerge: # automerge:
# name: Enable automerge # name: Enable automerge
# runs-on: ubuntu-latest # runs-on: ubuntu-latest

View file

@ -50,3 +50,10 @@ tasks.shadowJar {
tasks.getByName<Test>("test") { tasks.getByName<Test>("test") {
useJUnitPlatform() useJUnitPlatform()
} }
tasks.test {
reports {
junitXml.required.set(true)
html.required.set(false)
}
}