-
Notifications
You must be signed in to change notification settings - Fork 710
Can I pass command line arguments to a test suite when using new-test
?
#5416
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
You can |
It's non-obvious that the expected way to pass command line options to a test suite would be a different command, so mention it explicitly. Closes haskell#5416.
IMO |
That would be applying to every test suite being run by |
@23Skidoo didn't we have a discussion that passing the same flags to all testsuites is of modest benefit as soon as you have more than one testsuite, as it'd imply that all testsuites have the same CLI, and which is also where we got stuck w/ passing args to |
Perhaps because (at least for now) the I'm in favor of |
I would be very glad to be able to say:
— But, unfortunately, it does not work:
If the support for passing arguments like this is added to For now, I can live with passing information through environment, like this:
— But it feels a bit hackish. |
@kindaro that's the exact discussion we had already somewhere and it's not going to happen any time soon (because of technical CLI issues) PS: Found some of the discussions: |
I can imagine a use case for |
It's non-obvious that the expected way to pass command line options to a test suite would be a different command, so mention it explicitly. Closes #5416.
This means that old `test` flags can be passed in to `new-test`, `new-build`, `new-install`, `new-configure`, etc. These new flags are: * `--test-log` (see old `--log`) * `--test-machine-log` (see `--machine-log`) * `--test-show-details` (see `--show-details`) * `--test-keep-tix-files` (see `--keep-tix-files`) * `--test-options` * `--test-option` This fixes #4803, #4643, #4766, and #5416.
Is it me or does using |
This feature would be extremely useful to me in CI runners. I use I don't expect it'll be implemented, but I do want to register the request along with a use-case. |
Fwiw, I think this issue should be re-opened, if only to track |
@parsonsmatt i saw from your tweet that this was labeled WONTFIX. But it looks like @harpocrates actually implemented this in #5455 and that's why it was closed. You can call
Could you describe what you're seeing in more depth, and where you saw WONTFIX? The reason being that Cabal is under new management, and we want to revisit past decisions that perhaps weren't as friendly as they could be. |
Ah, I misunderstood this:
I thought this meant "`--test-options" is not going to happen any time soon", but it's something else. |
The issue title says: |
There is an option
cabal test --test-options
. Is there a correspondingcabal new-test
option? If not, can it be introduced?This is what I do with
test
v1:This is what happens when I replace
test
withnew-test
:I looked through
cabal new-test --help
two times, but I was not able to identify an option corresponding to--test-options
. There are many, maybe I missed something.The relevant section of
x.cabal
:The testing module:
Cabal version:
The text was updated successfully, but these errors were encountered: