Skip to content

Commit

Permalink
Run specs in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Johnstone committed Jul 12, 2019
1 parent 89125ed commit 052351a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/HaskellSyntaxSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ propParseAndPrint m =
Left _ -> False

haskellSyntaxSpecs :: SpecWith ()
haskellSyntaxSpecs =
haskellSyntaxSpecs = parallel $ do
describe "Forest haskell syntax" $ do
it "parses a module with multiple assignments" $ do
code <- readFixture "multiple-assignments"
Expand Down
2 changes: 1 addition & 1 deletion test/SampleSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ validSampleSpecs = do
filter (not . isPrefixOf ".") <$>
getDirectoryContents "./test/samples/valid"
specs <- foldl1 (flip (>>)) <$> mapM testFileIsValid files
return $ describe "valid samples" specs
return $ parallel $ describe "valid samples" specs
where
testFileIsValid :: FilePath -> IO (SpecWith ())
testFileIsValid path = do
Expand Down
2 changes: 1 addition & 1 deletion test/TypeCheckerSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ typeCheckerSpecs =
case r of
Right m -> () <$ checkModule m
Left err -> error $ "Failed to parse module: " ++ show err
in describe "Type checker" $ do
in parallel $ describe "Type checker" $ do
it "checks valid expressions" $
checkResult (parseModule valid) `shouldBe` Right ()
it "checks valid expressions that use locals" $
Expand Down
2 changes: 1 addition & 1 deletion test/WasmSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ propCodeThatTypeChecksShouldCompile m =

wasmSpecs :: SpecWith ()
wasmSpecs =
describe "wasm code generation" $
parallel $ describe "wasm code generation" $
it "generates valid wasm for any well typed module" $
withMaxSuccess
1000
Expand Down

0 comments on commit 052351a

Please sign in to comment.