mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-09-11 18:05:56 +03:00
remote: parallel tests
This commit is contained in:
parent
0a0e4a6793
commit
25bd0f104c
@ -121,7 +121,7 @@ test-suite remote
|
||||
type: exitcode-stdio-1.0
|
||||
main-is: Driver.hs
|
||||
hs-source-dirs: tests
|
||||
ghc-options: -Wall
|
||||
ghc-options: -Wall -threaded -rtsopts "-with-rtsopts -N"
|
||||
other-modules:
|
||||
SerializeSpec
|
||||
build-tool-depends:
|
||||
|
@ -9,7 +9,7 @@ import Data.Serialize.Get (Get, runGet)
|
||||
import Data.Serialize.Put (Putter, runPut)
|
||||
import Data.Text (Text)
|
||||
import Data.Time (NominalDiffTime)
|
||||
import Test.Hspec (Expectation, Spec, describe, it, shouldBe)
|
||||
import Test.Hspec (Expectation, Spec, describe, it, parallel, shouldBe)
|
||||
import Test.Hspec.QuickCheck (prop)
|
||||
import Test.Hspec.Nix (roundtrips)
|
||||
import Test.QuickCheck (arbitrary, forAll, suchThat)
|
||||
@ -56,7 +56,7 @@ roundtripS =
|
||||
(runGet get)
|
||||
|
||||
spec :: Spec
|
||||
spec = do
|
||||
spec = parallel $ do
|
||||
describe "Prim" $ do
|
||||
prop "Int" $ roundtrips2 putInt getInt
|
||||
prop "Bool" $ roundtrips2 putBool getBool
|
||||
|
Loading…
Reference in New Issue
Block a user