-
Notifications
You must be signed in to change notification settings - Fork 320
Add test results reporting for Azure DevOps pipelines #3336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: danieljurek <[email protected]>
Co-authored-by: danieljurek <[email protected]>
Co-authored-by: danieljurek <[email protected]>
Co-authored-by: danieljurek <[email protected]>
Co-authored-by: danieljurek <[email protected]>
|
It's OK to use unstable features for |
|
@copilot -- Try again. It's OK to use unstable features for cargo test. Revert most of these changes and start from enabling unstable features, having cargo test output with --format json, use cargo2junit to convert the test output, and publish that data to DevOps. |
Co-authored-by: danieljurek <[email protected]>
Reverted the implementation to use nightly Rust with The changes now:
Commit: daf7663 |
Co-authored-by: danieljurek <[email protected]>
Azure DevOps cannot display cargo test results without conversion to a supported format (JUnit, TRX, etc.). This PR implements test results reporting using nightly Rust's native JSON test output and cargo2junit.
Changes
Test-Packages.ps1
-CIswitch that captures test output usingcargo +nightly test -- --format json -Z unstable-optionstest-results/directory-CIomitted)Convert-TestResultsToJUnit.ps1 (new)
cargo2junittooltest-results/junit/directoryTEST-RESULTS-README.md (new)
Pipeline Integration
Implementation Approach
This implementation uses:
cargo +nightly test -- --format json -Z unstable-optionsThis approach is simpler and more reliable than custom parsing, leveraging Rust's built-in test output format and standard conversion tools.
Requirements
cargo +nightly)Pipeline YAML updates in
ci.tests.ymlandlive.tests.ymlpending.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.