This documentation implies that Test.Framework
can be run with command line arguments. There is a function defaultMain :: [Test] -> IO ()
but also the function defaultMainWithOpts :: [Test] -> RunnerOptions -> IO ()
which is
A version of
defaultMain
that lets you ignore the command line arguments in favour of an explicit set ofRunnerOptions
.
I cannot find documentation on how to pass command line arguments, and the error message for unrecognized options only says "unrecognized option". So my question is how to pass the number of test cases to run from the command line when running cabal test
Aucun commentaire:
Enregistrer un commentaire