Repository navigation
Fix Rust test report outputs in rust and rustjswasm templates - #217
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three fixes to Rust test outputs and lockfiles, follow-up to #216.
make testinrust/rancargo llvm-cov nextest --cobertura --output-path junit.xml, so a Cobertura coverage report landed inrust/junit.xml. CI uploads and publishes**/junit.xmlas JUnit test results. Bothrustandrustjswasmnow writecoverage.xml, which is already gitignored.rustjswasmis a root Cargo workspace (js,rust), so nextest reads.config/nextest.tomlfrom the repository root and ignoredrust/.config/nextest.toml. The file moves to the root, and nextest now writes JUnit totarget/nextest/default/junit.xml.rustjswasmshippedrust/Cargo.lock, which Cargo never reads inside the workspace. It is removed; the rootCargo.lockis created on first build and already staged by the bump hook.Generated both variants from
mainand from this branch and ranmake -C rust test:mainrust/junit.xmlis Cobertura; nextest JUnit inrust/target/nextest/default/rust/coverage.xml; nextest JUnit unchangedrust/junit.xmlis Cobertura; no nextest JUnitrust/coverage.xml; nextest JUnit intarget/nextest/default/