-
Notifications
You must be signed in to change notification settings - Fork 701
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
Is there a way to list project test suites? #8953
Comments
This is much needed: I had a question like this just this week. Option 1 (
You'd need to grep through this, perhaps. There's a feature request to make it more structured (#8189 (comment)). Option 2 (
|
Thanks @ulysses4ever, the |
This is what I did to get the list of test targets To run those test targets I used |
I think it's supposed to be > cat plan.txt | cut -d' ' -f1 | sed '/:exe:/d' | sed '/:bench:/d' (provided you don't have anything funny in your paths that |
Thanks @ulysses4ever for the one-liner. Yes I made a transcription error with the |
agreed! we have to hack around the lack of a cabal/cabal-install/bash-completion/cabal Line 111 in 9bf415a
|
I'd like to resurrect the I think it's absolutely vital fire normal users to get it work as expected - i.e., listing all of the binaries generated for this project. I admit I can't appreciate how difficult or easy it would be to get this capability working. |
@mouse07410 sure. I'd take inspiration from above mentioned cabal-plan. |
Would that give us something like |
@ulysses4ever, @mouse07410 and @fgaz are you available to review #9744 that fixes this? |
@philderbeast I brought it up on the last Cabal meeting. I'm personally happy with what I see so far, but I don't understand how design considerations were solved; e.g. separate subcommand vs. a flag for |
Is there a way to list project test suites?
I'd like to write all of a project's tests (in target form) to a file, discard the long-running ones, then have cabal run only the remaining tests.
I'm able to use
cabal test all --dry-run
but this noisy. Ideally I'd like a fully qualified target form likepackage:test:name
:The text was updated successfully, but these errors were encountered: