roc-lang / book-of-examples

Software Design by Example in Roc
Other
23 stars 15 forks source link

topic proposal: property-based testing framework #27

Open sophiecollard opened 2 months ago

sophiecollard commented 2 months ago

A simple property-based testing framework, with generators provided for primitive types and collections and the ability to define generators for your own custom types.

Advanced features like shrinking may have to be skipped to keep the project reasonably small though.

Anton-4 commented 2 months ago

Linking some earlier discussion about property-based testing.

gvwilson commented 2 months ago

see also #13, which was originally a proposal to do a fairly conventional xUnit-style unit testing framework but which has morphed into building a logging framework.

gvwilson commented 2 months ago

Thanks for this proposal - please create a subdirectory called proptest under the project root and put your code there when you have a version 0.0001 along with an index.md Markdown file with notes to yourself. Cheers - Greg