-
Notifications
You must be signed in to change notification settings - Fork 7
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
$(defaultMainGenerator) and imports #3
Comments
The reason that this does not work is that tasty-th currently does the following:
So perhaps, for your use case, I could add a function to generate a
Or even better, we could split the "detect the names of properties from a file" and "generate a test tree from property function names" into two separate functions, the first of which would take a file name. |
Ah, right. I understand. It would be awesome if you could make that happen. Also, |
Ok, you should now be able to use "extractTestFunctions" + "defaultMainGeneratorFor" to achieve your goal: just use |
Brilliant, thank you, I will let you know how it goes when I get a chance 🚀 |
You're welcome, hackage release is done. |
In the following snippet:
If I have all my quickcheck properties defined (as
prop_*
) intest/AllMyPropTests
, should the properties be picked up and run?It isn't working for me so far, but I have a strange use case. I am trying to create a new Tasty plugin which does test discovery, and I think the API would be greatly improved by using
tasty-th
. The implementation is 'borrowed' from the awesome hspec and their discover implementation.The Tasty plugins pre processed output will be the following code which will auto import all test modules under the users test directory. Then, the main generator would generate the boilerplate to run the tests.
I'd really like to get this working. Is there some TemplateHaskell limitation here? Any help really appreciated.
The text was updated successfully, but these errors were encountered: