libtest-mimic icon indicating copy to clipboard operation
libtest-mimic copied to clipboard

Provide a mechanism to skip tests at runtime

Open tgross35 opened this issue 1 year ago • 2 comments

This is a revival of #38 (cc @bwidawsk) with the following changes:

  • Change from an Option<String> to a custom enum
  • Print the message in output, as is done by libtest when #[ignore = "foo"] is used
  • Drop the commits adding log reordering and "sloppy" comparison

Fixes https://github.com/LukasKalbertodt/libtest-mimic/issues/19

tgross35 avatar Dec 20 '24 03:12 tgross35

This PR would be very useful in probe-rs. The project (among other things) runs tests on embedded devices, and libtest-mimic just orchestrates and provides the output. We allow aborting a test run with ctrl-c, but we do it by aborting the process, which causes some problems with some devices. This PR would allow us to more gracefully exit.

bugadani avatar Jan 28 '25 23:01 bugadani

@LukasKalbertodt would you be able to take a look at this?

tgross35 avatar Feb 20 '25 19:02 tgross35