More on demo-setup-teardown

This commit is contained in:
thomasjm 2023-11-19 02:02:16 -08:00
parent 5b24042cfb
commit e05e7b9adc
3 changed files with 6 additions and 3 deletions

View File

@ -27,7 +27,10 @@ introduceDatabase = introduceWith "introduceWith database" database $ \action ->
basic :: TopSpec
basic = describe "Simple tests" $ do
before "Pauses" (p 3) $ do
before "Pauses before" (p 3) $ do
it "adds" $ (2 + 2) `shouldBe` 4
after "Pauses after" (p 3) $ do
it "adds" $ (2 + 2) `shouldBe` 4
introduceDatabase $ do

View File

@ -10,7 +10,7 @@ license: BSD3
license-file: LICENSE
build-type: Simple
executable demo-basic
executable demo-setup-teardown
main-is: Main.hs
other-modules:
Paths_demo_setup_teardown

View File

@ -25,6 +25,6 @@ ghc-options:
- -with-rtsopts=-N
executables:
demo-basic:
demo-setup-teardown:
main: Main.hs
source-dirs: app