Define a test for each file in the given directory.
Example:
scenarioDir "test_resources/even" $ \fp ->
it "contains an even number" $ do
s <- readFile fp
n <- readIO s
(n :: Int) `shouldSatisfy` even:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Modulesydtest-0.22.0.0Haskell2010
Define a test for each file in the given directory.
Example:
scenarioDir "test_resources/even" $ \fp ->
it "contains an even number" $ do
s <- readFile fp
n <- readIO s
(n :: Int) `shouldSatisfy` evenDefine a test for each file in the given directory, recursively.
Example:
scenarioDirRecur "test_resources/odd" $ \fp ->
it "contains an odd number" $ do
s <- readFile fp
n <- readIO s
(n :: Int) `shouldSatisfy` odd