Skip to content

support quickcheck test case classification #64

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bfrk
Copy link

@bfrk bfrk commented Apr 19, 2023

When a property test succeeds and QC's classify function has been used, the output now has additional information about the distribution of test cases. Example outputs:

[OK, passed 1000 tests (49.6% fully trivial, 76.1 half trivial)]
[Arguments exhausted after 53 tests (100% half trivial)]

The #ifdefs are necessary to account for API changes in version 2.10 and 2.12 of QuickCheck. I was not able to build against QuickCheck < 2.7 because that requires base < 4.8, and the oldest ghc I can install with ghcup is 7.10.3 which is tied to base-4.8.2.0. If you accept this PR and make a new release, I suggest you also raise the lower bound on the QuickCheck dependency to 2.7.

When a property test succeeds and QC's classify function has been used, the
output now has additional information about the distribution of test cases.
Example outputs:

 [OK, passed 1000 tests (49.6% fully trivial, 76.1 half trivial)]
 [Arguments exhausted after 53 tests (100% half trivial)]
@bfrk bfrk marked this pull request as ready for review April 19, 2023 10:33
@Bodigrim
Copy link

Thanks for your contribution.

AFAICT test-framework is on life support only, the closest descendant in terms of API is tasty.

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

Successfully merging this pull request may close these issues.

2 participants