la10736 / rstest

Fixture-based test framework for Rust
Apache License 2.0
1.21k stars 43 forks source link

Add "global" timeout #190

Closed aviramha closed 1 year ago

aviramha commented 1 year ago

We often find ourselves adding the same timeout proc macro to each test and would love if we could set it in a global level then override on a function level. I was thinking of adding RSTEST_TIMEOUT environment variable to control it then logic would be if function timeout exists - use that, if not, try to use RSTEST_TIMEOUT.

I can send a PR if the idea makes sense.

la10736 commented 1 year ago

Yes, it have sense.

THX