parent
5cc96cbdba
commit
f3bce99120
18 changed files with 289 additions and 103 deletions
19
test/Spec.hs
19
test/Spec.hs
|
@ -1 +1,18 @@
|
|||
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}
|
||||
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}
|
||||
|
||||
-------------------------- How to use Hspec --------------------------
|
||||
|
||||
-- If a test has not yet been written:
|
||||
-- Use `pending` or `pendingWith`.
|
||||
-- it "Description" $ do
|
||||
-- pendingWith "Reason"
|
||||
|
||||
-- Temporarily disable running a test:
|
||||
-- Replace `it` with `xit`
|
||||
-- xit "Description" $ do ...
|
||||
|
||||
-- Temporarily only run a specific test:
|
||||
-- Put `focus` in front.
|
||||
-- it "Description" $ do ...
|
||||
-- becomes
|
||||
-- focus $ it "Description" $ do ...
|
Reference in a new issue