You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not having this in cabal test is usually why users run the test-suites via cabal run. For passing options to cabal test one has to specify them in --test-options which can be complicated with quoting.
$ cabal test --help | grep option
...
--test-options=TEMPLATES give extra options to test executables (name
--test-option=TEMPLATE give extra option to test executables (no need
to quote options containing spaces, name
--benchmark-options=TEMPLATES give extra options to benchmark executables
--benchmark-option=TEMPLATE give extra option to benchmark executables (no
need to quote options containing spaces, name
It should be doable to make cabal test (and while we are at it also cabal bench) support trailing -- arguments. And perhaps those other flags could be removed/deprecated/hidden.
The text was updated successfully, but these errors were encountered:
My immediate concern was "what about multiple test suites?", but --test-option has exactly the same problem, and I think cabal just feeds all the options to all the test suites, which would also be a perfectly reasonable behaviour for --.
Only
cabal run
allows to pass arguments with:Not having this in
cabal test
is usually why users run the test-suites viacabal run
. For passing options tocabal test
one has to specify them in--test-options
which can be complicated with quoting.It should be doable to make
cabal test
(and while we are at it alsocabal bench
) support trailing--
arguments. And perhaps those other flags could be removed/deprecated/hidden.The text was updated successfully, but these errors were encountered: