Module

Test.Spec

#Name

type Name = String

#Only

type Only = Boolean

#Result

data Result

Constructors

Instances

#Group

data Group t

Constructors

Instances

#Spec

type Spec t = State (Array (Group (Aff Unit))) t

#describe

describe :: String -> Spec Unit -> Spec Unit

Combine a group of specs into a described hierarchy.

#describeOnly

describeOnly :: String -> Spec Unit -> Spec Unit

Combine a group of specs into a described hierarchy and mark it as the only group to actually be evaluated. (useful for quickly narrowing down on a set)

#pending

pending :: String -> Spec Unit

Create a pending spec.

#pending'

pending' :: String -> Aff Unit -> Spec Unit

Create a pending spec with a body that is ignored by the runner. It can be useful for documenting what the spec should test when non-pending.

#it

it :: String -> Aff Unit -> Spec Unit

Create a spec with a description.

#itOnly

itOnly :: String -> Aff Unit -> Spec Unit

Create a spec with a description and mark it as the only one to be run. (useful for quickly narrowing down on a single test)

#collect

#countTests

countTests :: Spec Unit -> Int

Count the total number of tests in a spec

Modules