Skip to content

Commit cbb0209

Browse files
committed
Run specs in parallel
1 parent 06a5270 commit cbb0209

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/HaskellSyntaxSpec.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ propParseAndPrint m =
3535
Left _ -> False
3636

3737
haskellSyntaxSpecs :: SpecWith ()
38-
haskellSyntaxSpecs =
38+
haskellSyntaxSpecs = parallel $ do
3939
describe "Forest haskell syntax" $ do
4040
it "parses a module with multiple assignments" $ do
4141
code <- readFixture "multiple-assignments"

test/SampleSpec.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ validSampleSpecs = do
3232
filter (not . isPrefixOf ".") <$>
3333
getDirectoryContents "./test/samples/valid"
3434
specs <- foldl1 (flip (>>)) <$> mapM testFileIsValid files
35-
return $ describe "valid samples" specs
35+
return $ parallel $ describe "valid samples" specs
3636
where
3737
testFileIsValid :: FilePath -> IO (SpecWith ())
3838
testFileIsValid path = do

test/TypeCheckerSpec.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ typeCheckerSpecs =
221221
case r of
222222
Right m -> () <$ checkModule m
223223
Left err -> error $ "Failed to parse module: " ++ show err
224-
in describe "Type checker" $ do
224+
in parallel $ describe "Type checker" $ do
225225
it "checks valid expressions" $
226226
checkResult (parseModule valid) `shouldBe` Right ()
227227
it "checks valid expressions that use locals" $

test/WasmSpec.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ propCodeThatTypeChecksShouldCompile m =
4444

4545
wasmSpecs :: SpecWith ()
4646
wasmSpecs =
47-
describe "wasm code generation" $
47+
parallel $ describe "wasm code generation" $
4848
it "generates valid wasm for any well typed module" $
4949
withMaxSuccess
5050
1000

0 commit comments

Comments
 (0)