Skip to content

Fix Rust test report outputs in rust and rustjswasm templates - #217

Merged
python-templates-automerge[bot] merged 1 commit into
mainfrom
rust-test-reports
Nov 6, 2026
Merged

python-templates-automerge[bot] merged 1 commit into
mainfrom
rust-test-reports

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Three fixes to Rust test outputs and lockfiles, follow-up to #216.

  • make test in rust/ ran cargo llvm-cov nextest --cobertura --output-path junit.xml, so a Cobertura coverage report landed in rust/junit.xml. CI uploads and publishes **/junit.xml as JUnit test results. Both rust and rustjswasm now write coverage.xml, which is already gitignored.
  • rustjswasm is a root Cargo workspace (js, rust), so nextest reads .config/nextest.toml from the repository root and ignored rust/.config/nextest.toml. The file moves to the root, and nextest now writes JUnit to target/nextest/default/junit.xml.
  • rustjswasm shipped rust/Cargo.lock, which Cargo never reads inside the workspace. It is removed; the root Cargo.lock is created on first build and already staged by the bump hook.

Generated both variants from main and from this branch and ran make -C rust test:

main this branch
rust rust/junit.xml is Cobertura; nextest JUnit in rust/target/nextest/default/ Cobertura in rust/coverage.xml; nextest JUnit unchanged
rustjswasm rust/junit.xml is Cobertura; no nextest JUnit Cobertura in rust/coverage.xml; nextest JUnit in target/nextest/default/

make test wrote Cobertura coverage to junit.xml, which the CI test-result steps read as JUnit. Write it to coverage.xml instead.

rustjswasm is a root Cargo workspace, so nextest only reads .config/nextest.toml at the repository root and ignored rust/.config/nextest.toml. Move it to the root. Remove rustjswasm's rust/Cargo.lock, which Cargo never reads because the workspace lockfile is at the root.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@timkpaine timkpaine added the tag: automerge Automatically merge this PR when status checks pass label Nov 6, 2026
@python-templates-automerge
python-templates-automerge Bot merged commit 02f55bd into main Nov 6, 2026
21 checks passed
@python-templates-automerge
python-templates-automerge Bot deleted the rust-test-reports branch November 6, 2026 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tag: automerge Automatically merge this PR when status checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant