Repository navigation
Dependency solver quickcheck tests - #3245
Conversation
|
Re: Showing output/data: present looks pretty nice, but the GHC version requirement may be too steep :(. (It seems to require GHC 7.10.x.) |
|
This looks quite interesting. Regarding the actual failure: can I assume that you only get failures for test cases involving setup dependencies? |
|
LGTM, I think this can be merged. Re: dependency on |
|
@BardurArantsson I'll continue using @kosmikus I just ran the test for over an hour without @23Skidoo Thanks! Would you like me to merge it? |
|
@GrayJay Do the honours :-) |
|
@23Skidoo Thanks! |
I started adding quickcheck tests for the solver. There is currently only one test, which checks that parameters like
--reorder-goalsdo not affect whether the solver finds an install plan.Here is an example failure: https://gist.github.com/grayjay/86eea907cd08878855ae
I created a new test suite because the test is currently too slow to run as a unit test. The time to find one of the known bugs on
masterranges from under a second to over a minute on my computer, with a median of about 6 seconds (10,000 tests). We may want to run it even longer after those bugs are fixed. Another problem is that the test occasionally runs out of memory. I haven't tried to debug it yet.There are two other issues. I'm not sure how we should print failing test cases in a human-readable format. The PR currently uses the
pretty-showpackage to parse and reformat the results from the derivedShowinstance, but it requireshappy. I'm also not sure how to organize the test suite. I put the new test in theUnitTestsdirectory since it uses the existingDSLmodule. Another option is to have three directories undertests, one each for unit tests, solver quickcheck tests, and shared modules.