A test runner and reporter for purescript-spec that integrates with Mocha
Go to file
2017-01-12 07:38:51 +01:00
src/Test/Spec Adapt to purescript-spec-0.11.0 2017-01-12 07:38:51 +01:00
test Adapt to purescript-spec-0.11.0 2017-01-12 07:38:51 +01:00
.gitignore Initial commit 2015-07-27 19:47:01 +02:00
bower.json Adapt to purescript-spec-0.11.0 2017-01-12 07:38:51 +01:00
karma.conf.js Adapt to purescript-spec-0.11.0 2017-01-12 07:38:51 +01:00
LICENSE Initial commit 2015-07-27 19:47:01 +02:00
README.md Rename to purescript-spec-mocha and bump 2016-10-23 19:06:32 +02:00
run-example-test.sh Upgrade to purescript-spec 0.10.0 and support async tests 2016-10-23 18:41:01 +02:00

purescript-spec-mocha

purescript-spec-mocha is a runner and reporter for purescript-spec that run tests and reports the 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-mocha
module Main where

import Prelude

import Test.Spec                (describe, it, pending)
import Test.Spec.Assertions     (shouldEqual)
import Test.Spec.Mocha          (runMocha)

main = runMocha 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 docs on Pursuit.

Contribute

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

License

MIT License.