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

Implement Property based Testing #534

Open
MicahGale opened this issue Sep 4, 2024 · 4 comments
Open

Implement Property based Testing #534

MicahGale opened this issue Sep 4, 2024 · 4 comments
Labels
CI/CD good first issue Good for newcomers

Comments

@MicahGale
Copy link
Collaborator

MicahGale commented Sep 4, 2024

Property-based testing is a more exhaustive automated testing than traditional unit testing.

I found this tutorial, using the hypothesis framework.

@MicahGale MicahGale added good first issue Good for newcomers CI/CD labels Sep 4, 2024
@MicahGale
Copy link
Collaborator Author

Also need to look into mutation testing.

@MicahGale
Copy link
Collaborator Author

@MicahGale
Copy link
Collaborator Author

MicahGale commented Sep 5, 2024

Initial mutation testing results are not promising:

🎉 Killed mutants.   The goal is for everything to end up in this bucket.
⏰ Timeout.          Test suite took 10 times as long as the baseline so were killed.
🤔 Suspicious.       Tests took a long time, but not long enough to be fatal.
🙁 Survived.         This means your tests need to be expanded.
🔇 Skipped.          Skipped.

1. Using cached time for baseline tests, to run baseline again delete the cache file

2. Checking mutants
⠧ 6770/6770  🎉 4726  ⏰ 9  🤔 1  🙁 2034  🔇 0

@MicahGale
Copy link
Collaborator Author

mutmut results
mutmut.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant