Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions constrained-generators.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ test-suite constrained-tests
-Wredundant-constraints
-Wunused-packages
-rtsopts
-threaded
-with-rtsopts=-N

build-depends:
QuickCheck >= 2.15.0.1,
Expand Down
2 changes: 1 addition & 1 deletion test/Constrained/GraphSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ return []

tests :: Bool -> Spec
tests _nightly =
describe "Graph tests" $ sequence_ [ prop n (checkCoverage $ withMaxSuccess 1000 p) | (n, p) <- $allProperties ]
describe "Graph tests" $ parallel $ sequence_ [ prop n (checkCoverage $ withMaxSuccess 1000 p) | (n, p) <- $allProperties ]
2 changes: 1 addition & 1 deletion test/Constrained/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ testAll :: IO ()
testAll = hspec $ tests False

tests :: Bool -> Spec
tests nightly =
tests nightly = parallel $
describe "constrained" . modifyMaxSuccess (\ms -> if nightly then ms * 10 else ms) $ do
testSpec "signumPositive" signumPositive
testSpec "setOfPairLetSpec" setOfPairLetSpec
Expand Down
2 changes: 1 addition & 1 deletion test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import Test.Hspec
main :: IO ()
main = do
nightly <- isJust <$> lookupEnv "NIGHTLY"
hspec $ do
hspec $ parallel $ do
Tests.tests nightly
Graph.tests nightly
Loading