Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Isn't proptest something that could handle this?
https://github.com/proptest-rs/proptest
I use the mockall crate myself, which works rather well. It does however mean that you need to generally write your code as traits, and pass them around as traits.
https://github.com/asomers/mockall
Maybe https://github.com/BurntSushi/quickcheck too?
https://github.com/Ygg01/steel_yaml/blob/master/tests/yaml_t...
Here is how I made dynamic tests for it.
But cargo nextest is a game changer. Colored output + fast fail (configurable) + timeout detection is just great.
https://nexte.st/book/custom-test-harnesses.html