Skip to content

Commit

Permalink
Run tests in parallel + get rid of -with-rtsopts=-N (fixes fpco#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed May 23, 2023
1 parent bbf07a9 commit c0f28f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ tests:
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- base64-bytestring
- hspec == 2.*
- hspec >= 2.8.3 && < 3
- temporary
- typed-process
typed-process-test-single-threaded:
Expand Down
7 changes: 7 additions & 0 deletions test/SpecHook.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module SpecHook where

import Test.Hspec
import GHC.Conc

hook :: Spec -> Spec
hook spec = runIO (getNumProcessors >>= setNumCapabilities) >> parallel spec

0 comments on commit c0f28f4

Please sign in to comment.