Package

purescript-spec-discovery

Repository
owickstrom/purescript-spec-discovery
License
MPL-2.0
Uploaded by
owickstrom
Published on
2017-09-29T05:53:39Z

purescript-spec-discovery is an extension to purescript-spec that finds specs automatically, given a regular expression pattern.

It only works for NodeJS environments, currently.

Usage

bower install --save-dev purescript-spec-discovery
module Test.Main where

import Prelude
import Control.Monad.Eff (Eff)
import Node.FS (FS)
import Test.Spec.Discovery (discover)
import Test.Spec.Reporter.Console (consoleReporter)
import Test.Spec.Runner (RunnerEffects, run)

main :: Eff (RunnerEffects (fs :: FS)) Unit
main = discover "My\\.Package\\..*Spec" >>= run [consoleReporter]

All modules that match the regular expression, and has a definition spec :: Spec r Unit, will be included and run.

Documentation

Documentation is publised on Pursuit.

Contribute

If you have any issues or possible improvements please file them as GitHub Issues. Pull requests requests are encouraged.

License

Mozilla Public License Version 2.0.