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

Use property based testing (use Hypothesis) #692

Open
tc85324 opened this issue Jul 8, 2024 · 1 comment
Open

Use property based testing (use Hypothesis) #692

tc85324 opened this issue Jul 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tc85324
Copy link
Contributor

tc85324 commented Jul 8, 2024

What's the new feature?

Use Hypothesis for property-based testing.

See the Hypothesis docs for further information https://hypothesis.readthedocs.io/en/latest/index.html

What value does this add?

Better tests allow for better code. Property-based testing allows our tests to be a more accurate specification for the program behaviour/intent. In an ideal world, this would allow us to precisely specify all code behaviour with a reduced set of more comprehensive tests.

Is there an alternative you've considered?

It may be possible to avoid the use of Hypothesis.

Additional context

Converting the tests to utilise Hypothesis will take a lot of time. This is a forward looking change that will pay future dividends, by reducing the number of edge-case bugs (not caught by existing tests) and more precisely defining program intent.

@tc85324 tc85324 added enhancement New feature or request new Something yet to be discussed by development team labels Jul 8, 2024
@bk958178 bk958178 removed the new Something yet to be discussed by development team label Jul 31, 2024
@bk958178
Copy link
Contributor

Blocked pending #717

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants