-
Notifications
You must be signed in to change notification settings - Fork 20
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
How to run the tests? #141
Comments
For now, the workaround is to first build with |
I think the configure step has been performed by When running the tests with ghc 7.10 (see #140), the error message is much worse:
But the explanation of this error message is compatible with the hypothesis that |
I have a note in
However, when I tried it today with cabal-install-1.21.1.0 and Cabal-1.21.1.0, cabal ran
I guess that explains why |
Turns out the fact that |
Can I get rid of the Setup.hs file? All I want is to make sure the library is installed before I run the tests. Maybe I can detect that and print a message to the user? The
|
What is the status of this issue? Currently if try:
and its various combinations and permutations, no tests seem to run at all. |
I've never heard of the "--run-tests" flag, where is it documented? Also, are you trying to run hawk's tests or crypto-enigma's? You refer to both packages in your StackOverflow comments. As for the status of this bug, I see that the Cabal bug on which this is depending has been closed, and indeed, with cabal-install-1.22.6.0, instead of complaining that I haven't ran configure...
... my custom Setup.hs complains about an unrecognized flag, "reference", because cabal likes to switch up the way in which it talks with Setup.hs from version to version. So the bug stands, and the best way to run hawk's tests is still to install them with
|
Never mind, I see it's the replacement for the old behaviour of also running the tests when "--enable-tests" is passed. |
Tests are failing again (#217), but at least the question of how the tests are supposed to be run is now clear, since they run on CI: either using cabal with Lines 55 to 67 in 7213655
|
I was able to get the tests to pass locally with stack as well by following the instructions at #211 |
Running
cabal install --enable-tests
used to be enough to run the tests in the background, but it doesn't seem to do so anymore; maybe cabal-install changed? Also, runningcabal test
afterwards complains that I haven't runcabal configure
; shouldn'tcabal install
perform this step implicitly?The text was updated successfully, but these errors were encountered: