-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adopt Property Based Testing #303
Comments
Some alternatives to consider:
All that said, I use |
@thanethomson want to look into this at some point? We've had a lot of serialization issues like #451 from insufficient testing ... I'm going to add this to next milestone which already has a lot of other testing stuff for the light client but we should keep in mind the need to improve testing the serialization boundary as well even if it needs to happen iteratively through follow up issues |
@ebuchman sure thing! Added it to the backlog 👍 |
Interesting emerging relevant work from Google: https://alastairreid.github.io/why-not-both/ |
Nice that Google joins the race. Microsoft Research has been generating unit tests with model checking for ages: https://www.microsoft.com/en-us/research/publication/pex-white-box-test-generation-for-net/ |
The Project Oak approach is quite a bit different from "generating unit tests with model checking". It provides a common API for property-based testing and symbolic execution systems, which is nice because those systems have a common developer-facing API (test oracle versus assertions) but different tradeoffs (exhaustiveness vs system resource requirements). |
I talked with @thanethomson and @ebuchman about picking up this issue. Thane and I are going to sync next week, and I've reached out to Romain to get some pointers from him as well. |
I'd say that we now have a few examples of PBT in the codebase and it certainly adds some additional assurances to the correctness of the code it's testing, so subsequent issues regarding PBT can focus on more specific areas to be tested and this one can be closed. |
We want to produce an example of using property based testing in our code.
This issue will be complete when a single example is completed. This can be as simple as a spike.
Tony mentioned
proptest
in - #261 (comment) and #248 (comment)The text was updated successfully, but these errors were encountered: