<div dir="ltr"><div>Hi,</div><div><br></div><div>Three questions: 1) running specific criterion benchmark groups,</div><div>2) running specific test-framework test groups, and 3) getting</div><div>multiple Travis CI reports for one cabal'ised library.</div><div><br></div><div>1. Running specific criterion benchmark groups</div><div><br></div><div>Given this benchmark harness:</div><div><br></div><div>main = defaultMain [</div><div>  bgroup "fib" [ bench "1"  $ whnf fib 1</div><div>               , bench "5"  $ whnf fib 5</div><div>               , bench "9"  $ whnf fib 9</div><div>               , bench "11" $ whnf fib 11</div><div>               ]</div><div>  ]</div><div><br></div><div>How do I run one specific group benchmar, or a specific benchmark</div><div>in a specific group? Can I run:</div><div><br></div><div>$ cabal bench "fib"</div><div><br></div><div>or</div><div><br></div><div>$ cabal bench "fib/1"</div><div><br></div><div><br></div><div>2. Running specific test-framework test groups</div><div><br></div><div>Given this test harness with test-framework:</div><div><br></div><div>main = defaultMain tests</div><div>tests = [</div><div>        testGroup "Sorting-Group-1" [</div><div>                testProperty "sort1" prop_sort1,</div><div>                testProperty "sort2" prop_sort2,</div><div>                testProperty "sort3" prop_sort3</div><div>            ],</div><div>        testGroup "Sorting-Group-2" [</div><div>                testProperty "sort4" prop_sort4,</div><div>                testProperty "sort5" prop_sort5,</div><div>                testProperty "sort6" prop_sort6,</div><div>                testCase "sort7" test_sort7,</div><div>                testCase "sort8" test_sort8</div><div>            ]</div><div>    ]</div><div><br></div><div>Can I run:</div><div><br></div><div>$ cabal test "Sorting-Group-1"</div><div><br></div><div>or</div><div><br></div><div>$ cabal test "Sorting-Group-1/sort3"</div><div><br></div><div><br></div><div>3. Separating cabal'ised project to separate Travis CI badges</div><div><br></div><div>For my current project, I get one Travis CI report for all of</div><div>HUnit and QuikCheck tests I write for a cabal'ised library</div><div>expressed with test-framework. For example, if 108 tests fail I get</div><div>one Travis CI report saying #108 failing tests, and I get one Travis</div><div>CI badge of the form:</div><div><br></div><div><a href="https://travis-ci.org/">https://travis-ci.org/</a><my_username>/<library_name>.png?branch=master</div><div><br></div><div>What I'd really like is to retrieve multiple Travis CI reports and</div><div>multiple Travis CI badges for one Haskell libray. E.g.</div><div><br></div><div>API tests:       passing (with a URL for a green badge).</div><div>Parser tests:    #108 failing (with a URL for a red badge).</div><div>Messaging tests: #16 failing (with a URL for a red badge).</div><div><br></div><div>How could I refactor my test groups so that Travis CI will provide me</div><div>multiple reports for one cabal'ised project?</div><div><br></div><div>Thanks!</div><div><br></div><div>--</div><div>Rob Stewart</div></div>