feat(gs/xanthous): Enable tasty-rerun

Rerunning only failed tests is nice! To use this, run `cabal new-run
test -- --rerun`

Change-Id: I9dc4d69749c3e3d5ba8d1661a2fdf73e49cd8ad5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3816
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
Griffin Smith 2021-11-07 21:33:27 -05:00 committed by grfn
parent 875ef0a605
commit 5b4c4f0701
5 changed files with 10 additions and 6 deletions

View file

@ -140,6 +140,7 @@ tests:
- tasty
- tasty-hunit
- tasty-quickcheck
- tasty-rerun
- lens-properties
benchmarks:

View file

@ -10,8 +10,8 @@
, quickcheck-text, random, random-extras, random-fu, random-source
, Rasterific, raw-strings-qq, reflection, semigroupoids, semigroups
, splitmix, stache, streams, tasty, tasty-hunit, tasty-quickcheck
, text, text-zipper, tomland, transformers, vector, vty, witherable
, yaml, zlib
, tasty-rerun, text, text-zipper, tomland, transformers, vector
, vty, witherable, yaml, zlib
}:
mkDerivation {
pname = "xanthous";
@ -57,8 +57,8 @@ mkDerivation {
quickcheck-instances quickcheck-text random random-extras random-fu
random-source Rasterific raw-strings-qq reflection semigroupoids
semigroups splitmix stache streams tasty tasty-hunit
tasty-quickcheck text text-zipper tomland transformers vector vty
witherable yaml zlib
tasty-quickcheck tasty-rerun text text-zipper tomland transformers
vector vty witherable yaml zlib
];
benchmarkHaskellDepends = [
aeson array async base bifunctors brick checkers classy-prelude

View file

@ -26,7 +26,7 @@ import qualified Xanthous.UtilSpec
--------------------------------------------------------------------------------
main :: IO ()
main = defaultMain test
main = defaultMainWithRerun test
test :: TestTree
test = testGroup "Xanthous"

View file

@ -5,6 +5,7 @@ module Test.Prelude
, module Test.Tasty
, module Test.Tasty.HUnit
, module Test.Tasty.QuickCheck
, module Test.Tasty.Ingredients.Rerun
, module Test.QuickCheck.Classes
, testBatch
, jsonRoundTrip
@ -15,6 +16,7 @@ import Xanthous.Prelude hiding (assert, elements)
import Test.Tasty
import Test.Tasty.QuickCheck
import Test.Tasty.HUnit
import Test.Tasty.Ingredients.Rerun
import Test.QuickCheck.Classes
import Test.QuickCheck.Checkers (TestBatch, EqProp ((=-=)))
import Test.QuickCheck.Instances.ByteString ()

View file

@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 2db6cb1320baa23f71c24dff106bf682fb21e38c602d57e7e99297ae6abdc772
-- hash: 96c5446afd429c3e2166158e317c18a69be9bad8ce76de85f69abda4f9aa162c
name: xanthous
version: 0.1.0.0
@ -405,6 +405,7 @@ test-suite test
, tasty
, tasty-hunit
, tasty-quickcheck
, tasty-rerun
, text
, text-zipper
, tomland