[Haskell-cafe] For one cabal'ised library: running specific benchmarks & tests, and obtaining multiple Travis reports
Phil Ruffwind
rf at rufflewind.com
Sun Jan 3 06:19:21 UTC 2016
> $ cabal bench "fib"
Cabal adds a layer of indirection to the workflow. In order to pass
arguments to your benchmark program, you must prefix each argument
with '--benchmark-option=', leading to this:
$ cabal bench --bench-mark-option="fib"
The quotes are optional in this case. For more information, run
'cabal bench --help'.
> $ cabal test "Sorting-Group-1"
Same here. To pass the argument "Sorting-Group-1" to your test
program, you must prefix each argument with '--test-option=', leading
to this:
$ cabal test --test-option="Sorting-Group-1"
For more information, run 'cabal test --help'.
More information about the Haskell-Cafe
mailing list