Open
Description
Supporting 1.70 requires extra work/research because -Zunstable-options --format json
we've been using to get JSON output is no longer accepted on stable release.
I won't use the nightly because the maintenance cost on each version bump will increase (nightly features will be used and will break). A workaround mentioned is to set RUSTC_BOOTSTRAP=1
environment variable, but that's basically the same as using nightly.
--format json
won't be stabilized anytime soon.
Options
- Use a different test runner with a machine readable output.
cargo-nextest
supports JUnit XML. We should be able to convert this to Codewars messages. But the file is created after the test, so partial results are lost if the test crashes or timeouts.cargo-nextest
has partial support JSON output since 0.9.65.
- Parse the text output. We used to do this long time ago.
- Support Rust 1.69 and wait for a bit.
- Use nightly, but make it behave like stable by disabling all unstable features? (
-Zallow-features=
(allow nothing))
Please comment if you have other ideas.