-
Notifications
You must be signed in to change notification settings - Fork 711
Options that change how tests are run should not cause a rebuild #6267
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
I see something similar with test-options, which makes test log
|
To help you (and people searching and finding this issue) out until this is solved in cabal itself, is building and then repeatedly running the test executable directly from its path, with suitable options, a sufficient workaround? |
Duplicate of #6114 ? |
This is particularly bad on cabal itself:
|
It's not really a good work-around, because I usually want recompiles if anything changed. So this will require me to keep track of whether I edited anything myself. (Nevermind having to figure out how to execute the test binary, which again isn't something I usually have at the top of my mind.) |
A better workaround for the |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Building my project and the running the tests, causes the test command to rebuild everything.
I like to see the output of my test suites so I use
--test-show-details=direct
and I have multiple test suites and to avoid them all running at the same time (and having their output all come out at once) I use-j1
.To Reproduce
Steps to reproduce the behavior:
Using cabal version 3.0:
If I run the same two commands again, the
build
command will rebuild everything and then thetest
command will again rebuild everything.Expected behavior
The
test
command should only build the stuff that has not been built.System informataion
Related: #6129 #6069
The text was updated successfully, but these errors were encountered: