A test runner and reporter for purescript-spec that integrates with Mocha
Go to file
Oskar Wickström dedee06051 Initial commit
2015-07-27 19:47:01 +02:00
src/Test/Spec/Reporter Initial commit 2015-07-27 19:47:01 +02:00
test Initial commit 2015-07-27 19:47:01 +02:00
.gitignore Initial commit 2015-07-27 19:47:01 +02:00
bower.json Initial commit 2015-07-27 19:47:01 +02:00
karma.conf.js Initial commit 2015-07-27 19:47:01 +02:00
LICENSE Initial commit 2015-07-27 19:47:01 +02:00
README.md Initial commit 2015-07-27 19:47:01 +02:00

purescript-spec-reporter-mocha

purescript-spec-reporter-mocha is a reporter for purescript-spec that reports the test results using the Mocha interface (describe, it etc). This enables you to use purescript-spec together with mocha and karma.

Usage

bower install purescript-spec-reporter-mocha
module Main where

import Prelude

import Test.Spec
import Test.Spec.Runner
import Test.Spec.Reporter.Mocha

main = run [mochaReporter] do
  ...

If you bundle your compiled PureScript it can be run with mocha bundle.js or using Karma and karma-mocha.

pulp browserify -I test --main Test.Main > bundle.js
mocha bundle.js

API Documentation

See the docs directory.

Generating Docs

pulp docs

Contribute

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

License

MIT License.