-
Notifications
You must be signed in to change notification settings - Fork 107
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
Observe test case distribution #127
Comments
classify
from Test.QuickCheck.Propertyclassify
, cover
from Test.QuickCheck.Property
classify
, cover
from Test.QuickCheck.Property
It seems hard to feel confident in property tests without something like this, no? Especially when input domains are large and there's some class of rare cases that you still want to make sure are represented. |
Not really; if you have rare cases with unusual significance you can write a separate generator and properties exercising them.
Coverage tooling would be a great addition to Hedgehog; none of us really use it in QuickCheck so it has been a low priority. PRs welcome
… On Mar 25, 2018, at 6:25 AM, Mikael Brockman ***@***.***> wrote:
It seems hard to feel confident in property tests without something like this, no? Especially when input domains are large and there's some class of rare cases that you still want to make sure are represented.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I have a basic implementation of such a thing: https://github.com/qfpl/tasty-hedgehog-coverage Happy to try to make this into a more useful "built-in" part of Hedgehog, if there's interest. EDIT: This is now on hackage https://hackage.haskell.org/package/tasty-hedgehog-coverage |
@thumphries is the approach taken in |
@ruhatch Happy to help if required, feel free to throw issues/PRs at |
https://hackage.haskell.org/package/QuickCheck-2.10.1/docs/Test-QuickCheck-Property.html#v:classify
Example: http://hackage.haskell.org/package/checkers-0.4.9.5/docs/src/Test-QuickCheck-Utils.html#isCommutable
The text was updated successfully, but these errors were encountered: