Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I pass test-options with cabal new-test?

In the old cabal, you could pass test options like --color and --match=name by doing cabal test --test-option=--color --test-option=--match=name. Can this be done with cabal new-test? I don't see a --test-option in the help output of cabal new-test --help.

like image 658
MaxGabriel Avatar asked Oct 12 '18 22:10

MaxGabriel


1 Answers

No, it is not possible, presumably because new-test runs all test suites, so it is unclear which test to pass it to.

But new versions of cabal tell you in the help for new-test:

To pass command-line arguments to a test suite, see the new-run command.

so that is now the way to run a single test suite with options.

like image 109
Joachim Breitner Avatar answered Oct 25 '22 15:10

Joachim Breitner