Module
Test.Spec
- Package
- purescript-spec
- Repository
- purescript-spec/purescript-spec
#SpecT Source
newtype SpecT :: (Type -> Type) -> Type -> (Type -> Type) -> Type -> Type
newtype SpecT g i m a
Constructors
Instances
Newtype (SpecT g i m a) _
(Functor m) => Functor (SpecT g i m)
(Apply m) => Apply (SpecT g i m)
(Applicative m) => Applicative (SpecT g i m)
(Alt m) => Alt (SpecT g i m)
(Plus m) => Plus (SpecT g i m)
(Alternative m) => Alternative (SpecT g i m)
(Bind m) => Bind (SpecT g i m)
(Monad m) => Monad (SpecT g i m)
(MonadRec m) => MonadRec (SpecT g i m)
(MonadPlus m) => MonadPlus (SpecT g i m)
MonadTrans (SpecT g i)
(MonadEffect m) => MonadEffect (SpecT g i m)
(MonadCont m) => MonadCont (SpecT g i m)
(MonadThrow e m) => MonadThrow e (SpecT g i m)
(MonadError e m) => MonadError e (SpecT g i m)
(MonadAsk r m) => MonadAsk r (SpecT g i m)
(MonadReader r m) => MonadReader r (SpecT g i m)
(MonadState s m) => MonadState s (SpecT g i m)
#ComputationType Source
data ComputationType
Constructors
#sequential Source
sequential :: forall m g i a. Monad m => SpecT g i m a -> SpecT g i m a
marks all spec items of the given spec to be evaluated sequentially.
#FocusWarning Source
class FocusWarning
Nullary class used to raise a custom warning for the focusing functions.
Instances
(Warn (Text "Test.Spec.focus usage")) => FocusWarning
#focus Source
focus :: forall m g i a. FocusWarning => Monad m => SpecT g i m a -> SpecT g i m a
focus
focuses all spec items of the given spec.
Applying focus
to a spec with focused spec items has no effect.
#describeOnly Source
describeOnly :: forall m g i a. FocusWarning => Monad m => String -> SpecT g i m a -> SpecT g i m a
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)
#aroundWith Source
aroundWith :: forall m g i i' a. Monad m => (ActionWith g i -> ActionWith g i') -> SpecT g i m a -> SpecT g i' m a
Run a custom action before and/or after every spec item.
#beforeWith Source
beforeWith :: forall m g i i' a. Monad m => Monad g => (i' -> g i) -> SpecT g i m a -> SpecT g i' m a
Run a custom action before every spec item.
#beforeAll Source
beforeAll :: forall m g i a. MonadEffect m => MonadAff g => MonadError Error g => g i -> SpecT g i m a -> SpecT g Unit m a
Run a custom action before the first spec item.
#beforeAll_ Source
beforeAll_ :: forall m g i a. MonadEffect m => MonadAff g => MonadError Error g => g Unit -> SpecT g i m a -> SpecT g i m a
Run a custom action before the first spec item.
#after Source
after :: forall m g e f i a. Monad m => MonadBracket e f g => ActionWith g i -> SpecT g i m a -> SpecT g i m a
Run a custom action after every spec item.
#afterAll Source
afterAll :: forall m g i a. Monad m => ActionWith g i -> SpecT g i m a -> SpecT g i m a
Run a custom action after the last spec item.
Re-exports from Test.Spec.Tree
#ActionWith Source
type ActionWith :: (Type -> Type) -> Type -> Type
type ActionWith m a = a -> m Unit
- Modules
- Test.
Spec - Test.
Spec. Assertions - Test.
Spec. Assertions. String - Test.
Spec. Config - Test.
Spec. Console - Test.
Spec. Reporter - Test.
Spec. Reporter. Base - Test.
Spec. Reporter. Console - Test.
Spec. Reporter. Dot - Test.
Spec. Reporter. Spec - Test.
Spec. Reporter. Tap - Test.
Spec. Reporter. TeamCity - Test.
Spec. Result - Test.
Spec. Runner - Test.
Spec. Runner. Event - Test.
Spec. Speed - Test.
Spec. Style - Test.
Spec. Summary - Test.
Spec. Tree