Put command line arguments for tests in cabal file?

Is there a way to write command line arguments for tests (exitcode-stdio-1.0) in a cabal file?

I can run tests manually with

cabal test --test-options="foo bar" 

but I do not want to (re) enter this.

+6
source share
1 answer

There is no way to do this. As follows from the comments, if there are default options for the test suite, they should simply be baked in the executable file. Command line options are only for overriding or changing these default settings. There is no way to add additional parameters in cabal file

0
source

Source: https://habr.com/ru/post/983432/


All Articles