-
Notifications
You must be signed in to change notification settings - Fork 16
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
test function of Property type class is not available #39
Comments
UnkindPartition
added a commit
that referenced
this issue
Aug 8, 2017
Does the above work for you? If so, I'll make a release. |
Also, you are aware of hspec-smallcheck, right? |
Yes, it does work. Thanks in advance for the release. |
UnkindPartition
added a commit
that referenced
this issue
Aug 8, 2017
Got it — just wasn't sure what problem you were solving. Released as v1.1.2. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to run (all) my tests using QuickCheck and SmallCheck using Hspec. I Thought it might be helpful to run both test cases using the same Spec structure as when running test cases with either of them.
My idea was to create a library which handles the importing of QuickCheck and SmallCheck (and maybe other testing libraries) and reexports an unique interface for running both. The implementation is very simple.
That is why I present the basic code here (including a Spec example):
Unfortunately it is not possible to implement the last Testable instance for SmallCheck as function
test
is not being exported. Thus, my suggestion is to export it and rerelease SmallCheck. I understand the Test.SmallCheck.Property module (and its functiontest
) is internal. If it is required to stress this, I would suggest renaming this module to Test.SmallCheck.Internal.Property, exporting the test function and making it a visible module of the package.Of course I am open to suggestions to achieve my goal (without code duplication) otherwise.
The text was updated successfully, but these errors were encountered: