Module

Test.Spec.Tree

Package
purescript-spec
Repository
purescript-spec/purescript-spec

#Tree Source

data Tree c a

Constructors

Instances

#Item Source

newtype Item :: (Type -> Type) -> Type -> Typenewtype Item m a

Constructors

Instances

#ActionWith Source

type ActionWith :: (Type -> Type) -> Type -> Typetype ActionWith m a = a -> m Unit

#bimapTree Source

bimapTree :: forall a b c d. (Array String -> a -> b) -> (NonEmptyArray String -> c -> d) -> Tree a c -> Tree b d

#countTests Source

countTests :: forall c t. Array (Tree c t) -> Int

Count the total number of tests in a spec

#isAllParallelizable Source

isAllParallelizable :: forall c m a. Tree c (Item m a) -> Boolean

Return true if all items in the tree are parallelizable

#discardUnfocused Source

discardUnfocused :: forall c m a. Array (Tree c (Item m a)) -> Array (Tree c (Item m a))

If there is at least one focused element, all paths which don't lead to a focused element will be remove. otherwise input will be returned as unchanged.

#modifyAroundAction Source

modifyAroundAction :: forall g a b. (ActionWith g a -> ActionWith g b) -> Item g a -> Item g b

Modify around action of an Item

#PathItem Source

newtype PathItem

Constructors

Instances

#parentSuiteName Source

#parentSuite Source

parentSuite :: Path -> Maybe { name :: String, path :: Path }