-
Notifications
You must be signed in to change notification settings - Fork 698
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
cabal run
a test-suite in project could change working directory to that of package, as cabal test
does
#10127
Comments
#9923 may be related, closed in anticipation of the imminent @jasagredo is there a change in behaviour between |
It seems quite ad-hoc to me to do something different in |
@philderbeast No change with a cabal from @mpickering Fair point. What if I propose that |
That's likely to be fairly user-visible, and I'd want to hear input from cabal-install users before making that change. |
What about I wonder if we could ask a different question: why do people
Perhaps if we can just fix those issues we can leave |
Your 1 and 2 are the only reasons I've heard for |
I think |
It does, but apparently people are annoyed by needing to say Maybe a short option for specifically that option is the way to go. (I haven't checked; maybe |
It's the default these days anyway: #8942 |
Indeed I use |
I agree with @michaelpj that I expect benchmarks and test to support |
I'm fine with that. Let's close this issue and open a proper one that explicitly requests that feature. |
FTR #10131 |
Running a test-suite inside a cabal project executes it in the current directory. However, testing a test-suite first changes working directory to that of the package and then runs the test-suite.
This is somewhat annoying because if a test depends on reading some files from the file-system, it might not find then (thus failing) if
cabal run
'ed but work ifcabal test
'ed.I am proposing that
cabal run
a test-suite executable should emulate whatcabal test
does, this is: moving to the appropriate directory before running the executable.An example of the (at least to me) annoying behaviour:
The text was updated successfully, but these errors were encountered: