Skip to content
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

Allow passing test options using --- #8148

Closed
michaelpj opened this issue May 19, 2022 · 2 comments
Closed

Allow passing test options using --- #8148

michaelpj opened this issue May 19, 2022 · 2 comments

Comments

@michaelpj
Copy link
Collaborator

At the moment, you have to pass options to test suite executables with --test-options. This is a bit inconvenience since you often have to quote the options, and then escape quotes inside them.

We could instead allow providing options to the test suite after ---. This is a fairly standard CLI idiom, and already works for cabal run.

An argument against is that cabal test can take multiple components to test and it would have to give them all the same arguments, which might not be appropriate, but the same is true today of --test-options.

@fendor
Copy link
Collaborator

fendor commented May 19, 2022

I think this looks a lot like #6198

@michaelpj
Copy link
Collaborator Author

Yep, it's a dupe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants