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
99 stars 28 forks source link

feature request: Add timeout support #36

Closed bwidawsk closed 8 months ago

bwidawsk commented 8 months ago

It would be useful if a test could timeout. As a start, a global timeout value would suffice.

It seems pretty straightforward to implement. However, it may be considered ideal to have the test itself implement the timeout, which allows each test to specify their own timeout.

Thoughts?

LukasKalbertodt commented 8 months ago

Hi! I think the requested feature is not offered by rustc --test, right? In that case, I don't want to add it to this crate. libtest-mimic is actually just about offering exactly the built-in features for own test harnesses, but not more. A timeout feature could easily be added on top of this.