hspec Questions
1
Solved
I'm trying to get my head around the reason why the test file containing unit-tests which is defined as a module fails when run with stack build --test.
Say having a simple test module defined fro...
Romilda asked 20/11, 2019 at 0:7
1
Solved
I've written a series of test, using the automatic spec discovery feature of Hspec. I'm also using stack as my build tool.
My test directory has the the Spec.hs file, along with the test files for...
Serval asked 7/9, 2016 at 8:54
1
Solved
Here's what I've got:
spec :: Spec
spec = do
manager <- runIO newManager
it "foo" $ do
-- code that uses manager
it "bar" $ do
-- code that usees manager
The docs for runIO suggest tha...
Unideaed asked 29/5, 2015 at 18:8
1
© 2022 - 2024 — McMap. All rights reserved.