Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module defines all the functions you will use to define your test suite.
Documentation
TDef | |
|
Instances
Functor TDef Source # | |
Foldable TDef Source # | |
Defined in Test.Syd.SpecDef fold :: Monoid m => TDef m -> m # foldMap :: Monoid m => (a -> m) -> TDef a -> m # foldMap' :: Monoid m => (a -> m) -> TDef a -> m # foldr :: (a -> b -> b) -> b -> TDef a -> b # foldr' :: (a -> b -> b) -> b -> TDef a -> b # foldl :: (b -> a -> b) -> b -> TDef a -> b # foldl' :: (b -> a -> b) -> b -> TDef a -> b # foldr1 :: (a -> a -> a) -> TDef a -> a # foldl1 :: (a -> a -> a) -> TDef a -> a # elem :: Eq a => a -> TDef a -> Bool # maximum :: Ord a => TDef a -> a # | |
Traversable TDef Source # | |
type TestForest a c = SpecDefForest a c () Source #
type TestTree a c = SpecDefTree a c () Source #
type SpecDefForest (a :: [Type]) c e = [SpecDefTree a c e] Source #
data SpecDefTree (a :: [Type]) c e where Source #
DefSpecifyNode :: Text -> TDef (((HList a -> c -> IO ()) -> IO ()) -> IO TestRunResult) -> e -> SpecDefTree a c e | |
DefPendingNode :: Text -> Maybe Text -> SpecDefTree a c e | |
DefDescribeNode :: Text -> SpecDefForest a c e -> SpecDefTree a c e | |
DefWrapNode :: (IO () -> IO ()) -> SpecDefForest a c e -> SpecDefTree a c e | |
DefBeforeAllNode :: IO a -> SpecDefForest (a ': l) c e -> SpecDefTree l c e | |
DefAroundAllNode :: ((a -> IO ()) -> IO ()) -> SpecDefForest (a ': l) c e -> SpecDefTree l c e | |
DefAroundAllWithNode :: ((b -> IO ()) -> a -> IO ()) -> SpecDefForest (b ': (a ': l)) c e -> SpecDefTree (a ': l) c e | |
DefAfterAllNode :: (HList a -> IO ()) -> SpecDefForest a c e -> SpecDefTree a c e | |
DefParallelismNode :: Parallelism -> SpecDefForest a c e -> SpecDefTree a c e | |
DefRandomisationNode :: ExecutionOrderRandomisation -> SpecDefForest a c e -> SpecDefTree a c e |
Instances
Functor (SpecDefTree a c) Source # | |
Defined in Test.Syd.SpecDef fmap :: (a0 -> b) -> SpecDefTree a c a0 -> SpecDefTree a c b # (<$) :: a0 -> SpecDefTree a c b -> SpecDefTree a c a0 # | |
Foldable (SpecDefTree a c) Source # | |
Defined in Test.Syd.SpecDef fold :: Monoid m => SpecDefTree a c m -> m # foldMap :: Monoid m => (a0 -> m) -> SpecDefTree a c a0 -> m # foldMap' :: Monoid m => (a0 -> m) -> SpecDefTree a c a0 -> m # foldr :: (a0 -> b -> b) -> b -> SpecDefTree a c a0 -> b # foldr' :: (a0 -> b -> b) -> b -> SpecDefTree a c a0 -> b # foldl :: (b -> a0 -> b) -> b -> SpecDefTree a c a0 -> b # foldl' :: (b -> a0 -> b) -> b -> SpecDefTree a c a0 -> b # foldr1 :: (a0 -> a0 -> a0) -> SpecDefTree a c a0 -> a0 # foldl1 :: (a0 -> a0 -> a0) -> SpecDefTree a c a0 -> a0 # toList :: SpecDefTree a c a0 -> [a0] # null :: SpecDefTree a c a0 -> Bool # length :: SpecDefTree a c a0 -> Int # elem :: Eq a0 => a0 -> SpecDefTree a c a0 -> Bool # maximum :: Ord a0 => SpecDefTree a c a0 -> a0 # minimum :: Ord a0 => SpecDefTree a c a0 -> a0 # sum :: Num a0 => SpecDefTree a c a0 -> a0 # product :: Num a0 => SpecDefTree a c a0 -> a0 # | |
Traversable (SpecDefTree a c) Source # | |
Defined in Test.Syd.SpecDef traverse :: Applicative f => (a0 -> f b) -> SpecDefTree a c a0 -> f (SpecDefTree a c b) # sequenceA :: Applicative f => SpecDefTree a c (f a0) -> f (SpecDefTree a c a0) # mapM :: Monad m => (a0 -> m b) -> SpecDefTree a c a0 -> m (SpecDefTree a c b) # sequence :: Monad m => SpecDefTree a c (m a0) -> m (SpecDefTree a c a0) # | |
MonadWriter (TestForest a b) (TestDefM a b) Source # | |
Defined in Test.Syd.Def.TestDefM writer :: (a0, TestForest a b) -> TestDefM a b a0 # tell :: TestForest a b -> TestDefM a b () # listen :: TestDefM a b a0 -> TestDefM a b (a0, TestForest a b) # pass :: TestDefM a b (a0, TestForest a b -> TestForest a b) -> TestDefM a b a0 # |
type ResultForest = SpecForest (TDef (Timed TestRunResult)) Source #
type ResultTree = SpecTree (TDef (Timed TestRunResult)) Source #
data TestSuiteStats Source #
Instances
Eq TestSuiteStats Source # | |
Defined in Test.Syd.SpecDef (==) :: TestSuiteStats -> TestSuiteStats -> Bool # (/=) :: TestSuiteStats -> TestSuiteStats -> Bool # | |
Show TestSuiteStats Source # | |
Defined in Test.Syd.SpecDef showsPrec :: Int -> TestSuiteStats -> ShowS # show :: TestSuiteStats -> String # showList :: [TestSuiteStats] -> ShowS # | |
Semigroup TestSuiteStats Source # | |
Defined in Test.Syd.SpecDef (<>) :: TestSuiteStats -> TestSuiteStats -> TestSuiteStats # sconcat :: NonEmpty TestSuiteStats -> TestSuiteStats # stimes :: Integral b => b -> TestSuiteStats -> TestSuiteStats # | |
Monoid TestSuiteStats Source # | |
Defined in Test.Syd.SpecDef mappend :: TestSuiteStats -> TestSuiteStats -> TestSuiteStats # mconcat :: [TestSuiteStats] -> TestSuiteStats # |
shouldExitFail :: ResultForest -> Bool Source #