From 99a94702d015e35fc57f7cecc0b48f498a0f7518 Mon Sep 17 00:00:00 2001 From: etienne-k <2804556+etienne-k@users.noreply.github.com> Date: Fri, 11 Nov 2022 11:58:03 +0100 Subject: [PATCH] Use a unit test reporter --- .config/nextest.toml | 3 +++ .github/workflows/rust.yml | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/.config/nextest.toml b/.config/nextest.toml index 18e4061..633a681 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -1,3 +1,6 @@ [profile.ci] # Don't fail fast in CI to run the full test suite. fail-fast = false + +[profile.ci.junit] +path = "junit.xml" diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fde00fb..52ce92d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -68,5 +68,12 @@ jobs: with: command: nextest args: run --all-features --profile ci + - name: Process unit test report + uses: dorny/test-reporter@v1 + if: success() || failure() + with: + name: test-results + path: target/nextest/ci/junit.xml + reporter: java-junit - name: Run documentation tests run: cargo test --doc