Skip to content
Snippets Groups Projects
Commit b9204a1e authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Implement testTreeSubSteps.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 68891ce4
No related merge requests found
......@@ -66,6 +66,7 @@ module PackageTests.PackageTester
, testTree
, testTreeSteps
, testTreeSub
, testTreeSubSteps
, testTree'
, groupTests
, mapTestTrees
......@@ -788,7 +789,12 @@ testTreeSub :: SuiteConfig -> String -> String -> TestM a -> TestTreeM ()
testTreeSub config name sub_name m =
testTree' $ HUnit.testCase (name </> sub_name) $ runTestM config name (Just sub_name) m
-- TODO testTreeSubSteps
testTreeSubSteps :: SuiteConfig -> String -> String
-> ((String -> TestM ()) -> TestM a)
-> TestTreeM ()
testTreeSubSteps config name sub_name f =
testTree' . HUnit.testCaseSteps (name </> sub_name)
$ \step -> runTestM config name (Just sub_name) (f (liftIO . step))
testTree' :: TestTree -> TestTreeM ()
testTree' tc = tell [tc]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment