Skip to content

purescript-spec/purescript-spec-discovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-spec-discovery

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 Effect (Effect)
import Test.Spec.Discovery (discover)
import Test.Spec.Reporter.Console (consoleReporter)
import Test.Spec.Runner (run)

main :: Effect Unit
main = do
  specs <- discover "My\\.Package\\..*Spec" 
  run [consoleReporter] specs

All modules that match the regular expression, and has a definition spec :: Spec 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.