-
Notifications
You must be signed in to change notification settings - Fork 704
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 v2-test does not respect --
#6198
Comments
See #5416 for details. In summary, you need to use This isn't particularly intuitive, at the minimum the error message should be improved it link out to some external docs. |
There's also a v2-test flag that adds arguments if I'm not mistaken |
There's
|
@ptkato this is a good one for you |
I've been scouring the cabal-install codebase after an easy, yet non-disruptive, way to implement this feature using Other than messing up with those lines in |
I'm afraid it does look disruptive and non-trivial, but OTOH it's obviously needed. I'm more worried about the spec, though. Do we have a uniform understanding of |
Kinda? It seems to be just ignored by every command, but other than that, not really.
I don't think modifications to
That's a valid concern, maybe we could rely on something like a tuple (as it is spit out by |
Alright, I gave using tuples a shot, and it was a terrible idea, a very big chunk of code goes around relying on the arguments as I was discussing with @fendor, and we concluded that the best approach would be to implement the
These would imply in much smaller changes, since it would rely on the flag machinery already in place. |
Describe the bug
Passing additional arguments to the test suite with
cabal new-test
/v2-test
seems impossible.To Reproduce
type: exitcode-stdio-1.0
.cabal v2-test -- --foo
.Expected behavior
The
--foo
argument is passed to the compiled test suite.Observed behavior
Cabal fails with an error message:
System informataion
cabal
: 2.4.1.0ghc
:The Glorious Glasgow Haskell Compilation System, version 8.6.5
Additional context
Note that
cabal v2-test --help
has the following to say on the matter of passing arguments to test suites:Which, in turn, suggests using
--
.The text was updated successfully, but these errors were encountered: