Skip to content
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

Property-based Testing for Better Guarantees #36

Open
2 of 6 tasks
appcypher opened this issue Jul 8, 2022 · 0 comments
Open
2 of 6 tasks

Property-based Testing for Better Guarantees #36

appcypher opened this issue Jul 8, 2022 · 0 comments
Assignees

Comments

@appcypher
Copy link
Member

appcypher commented Jul 8, 2022

We want test our fs components based on their properties instead of the specific scenarios we create for them right now. These scenarios are the edge cases we can think of and it is easy to miss other important cases. Property-based testing lets us lay bare the component and let automation poke at different points in its makeup.

There are two libraries to consider, proptest and quikcheck, but proptest is favored because it has a better "shrinker", even though it can be a tad tedious to write.

Coverage

  • Private filesystem
    • HAMT
    • Namefilter
    • Filesystem properties
  • Public filesystem
  • Memory Blockstore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants