LukasKalbertodt / libtest-mimic

A small test framework to write your own test harness that looks and behaves like the built-in test harness used by `rustc --test`
https://docs.rs/libtest-mimic
Apache License 2.0
95 stars 26 forks source link

Incompatible with IntelliJ Rust #25

Closed Dinnerbone closed 5 months ago

Dinnerbone commented 1 year ago

When using IntelliJ Rust, cargo test is specialcased to add extra arguments to allow the IDE to parse the results. Unfortunately, these arguments aren't supported and so you can't run tests from inside the IDE if using libtest-mimic.

When running cargo test it actually adds: --format=json -Z unstable-options --show-output

Libtest --help output says:

    --show-output   Show captured stdout of successful tests             
-Z unstable-options Enable nightly-only flags:                           
                    unstable-options = Allow use of experimental features
LukasKalbertodt commented 5 months ago

This should be fixed by #35 and 70cdc55ee50df8325d11f5e2cbe53c6bf74d375d. If there are still problems, let me know.