-
Notifications
You must be signed in to change notification settings - Fork 711
cabal install --enable-tests does not run test suite? #2031
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
Comments
Try |
That seems to work. Was this change in behavior mentioned in any release announcement? And what's the motivation behind it? I can't think of a good reason to build the test suite without running it, especially since simply building the test suite won't cause the executables to be installed anywhere. If I could make a request for future such changes: it would be nice if cabal-install command line flags were treated somewhat more like an API, where silently changing behavior is not recommended, and instead a new flag with the modified behavior be provided instead. This switch did actually cause me quite a few problems, as I ended up installing versions of libraries in development that were not fully functional, assuming the test suites had already been run. |
Hmm, looks like Johan forgot to mention it. Sorry for that!
See #1647. |
Motivation understood. I'd still like to request that future changes avoid backwards-incompatible changes like this. When giving instructions to new users, it's very difficult to say "OK, if you're on version X of cabal, do A, but if you're on version Y, A actually does something else, so do B instead." |
When I have a project with a failing test suite (i.e.,
cabal test
fails),cabal install --enable-tests
still succeeds, and I see no evidence that the test suite was ever actually run.By contrast, with:
running
cabal install --enable-tests
fails as I would have expected.The text was updated successfully, but these errors were encountered: