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.
bower install purescript-spec-mochamodule 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.jsSee docs on Pursuit.
If you have any issues or possible improvements please file them as GitHub Issues. Pull requests requests are encouraged.