Module

Test.Spec.Tree

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

#Tree Source

data Tree c a

Constructors

Instances

#Item Source

newtype Item m a

Constructors

Instances

#ActionWith Source

type ActionWith m a = a -> m Unit

#bimapTree Source

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

#countTests Source

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

Count the total number of tests in a spec

#isAllParallelizable Source

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

Return true if all items in the tree are parallelizable

#discardUnfocused Source

discardUnfocused :: forall a m c. 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 b a g. (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 }