elidupree / live-prop-test

Fearlessly write both cheap and expensive runtime tests (contracts) for Rust functions.
Apache License 2.0
0 stars 0 forks source link

Allow specifying which crates (module paths?) to run tests for in initialization? #16

Open elidupree opened 2 years ago

elidupree commented 2 years ago

Not sure if this is the right way to go.

The biggest case where this matters is for unit tests. If your unit tests are calling external-crate functions that have expensive tests on them, you might want any of the following:

Currently there isn't much division between preconditions and postconditions, but hypothetically, you could care only about preconditions from a particular third-party crate; however, the API for exposing an option to "run tests for this crate, but only test the cheaper preconditions" should be considered properly, not just enabled through and add-hoc configuration option on initialization