purescript-featurespec

0.0.4 • Public • Published

Module Documentation

Module Test.FeatureSpec

Module Test.FeatureSpec.Assert

Values

assert :: Boolean -> FeatureSpec Unit

assert' :: Boolean -> String -> FeatureSpec Unit

assertJust :: forall a. Maybe a -> FeatureSpec Unit

assertJust' :: forall a. Maybe a -> String -> FeatureSpec Unit

assertLeft :: forall a b. Either a b -> FeatureSpec Unit

assertLeft' :: forall a b. Either a b -> String -> FeatureSpec Unit

assertNothing :: forall a. Maybe a -> FeatureSpec Unit

assertNothing' :: forall a. Maybe a -> String -> FeatureSpec Unit

assertRight :: forall a b. Either a b -> FeatureSpec Unit

assertRight' :: forall a b. Either a b -> String -> FeatureSpec Unit

Module Test.FeatureSpec.Phrase

Values

and :: String -> FeatureSpec Unit

but :: String -> FeatureSpec Unit

given :: String -> FeatureSpec Unit

info :: String -> FeatureSpec Unit

it :: String -> FeatureSpec Unit

pending :: FeatureSpec Unit

when :: String -> FeatureSpec Unit

Module Test.FeatureSpec.Section

Values

feature :: String -> FeatureSpec Unit -> FeatureSpec Unit

ignore :: String -> FeatureSpec Unit -> FeatureSpec Unit

scenario :: String -> FeatureSpec Unit -> FeatureSpec Unit

spec :: forall eff. String -> FeatureSpec Unit -> FeatureSpec Unit

Module Test.FeatureSpec.Types

Types

type FeatureSpec a = forall eff. RWST Indent Log Results (Eff (trace :: Trace, err :: Exception | eff)) a

type Indent  = String

type Log  = [String]

data Phrase where
  Info :: Phrase
  Given :: Phrase
  When :: Phrase
  It :: Phrase
  And :: Phrase
  But :: Phrase

data Result where
  Pending :: Result
  Good :: String -> Result
  Bad :: String -> Result

type Results  = [Result]

Type Class Instances

instance eqResult :: Eq Result

instance showPhrase :: Show Phrase

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    1
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i purescript-featurespec

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • joneshf