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

Fix --list --ignored behavior #11

Closed sunshowers closed 2 years ago

sunshowers commented 2 years ago

I'm trying to get libtest-mimic to work well with cargo-nextest -- see the documentation on custom test harnesses and nextest-rs/nextest#38. I'd love to recommend libtest-mimic as a way to write custom test harnesses.

One of the requirements for nextest is the ability to detect ignored and non-ignored tests during the list phase. libtest prints out just the ignored tests if you run --list --ignored: make libtest-mimic do the same.

In my testing, this appears to be the only issue blocking libtest-mimic from working with nextest.

sunshowers commented 2 years ago

BTW I'm also happy to port over CI to GHA if you'd like that.

sunshowers commented 2 years ago

Done, thanks!

LukasKalbertodt commented 2 years ago

Thanks!

I will wait with releasing this a bit as I plan on improving the library in some other aspects before doing a new (major) release. If I don't find any time for that and forget about this, feel free to ping me again in, say, 2 weeks.

LukasKalbertodt commented 2 years ago

Released as 0.4.0