Grunt task for running client-side Mocha specs in PhantomJS with reporters (forked from grunt-mocha)
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
growl
phantomjs
tasks
.gitignore
.jshintrc
.travis.yml
AUTHORS
Gruntfile.js
LICENSE-MIT
README.md
package.json

README.md

grunt-mocha-phantom-hack

Automatically run client-side mocha specs via grunt/mocha/PhantomJS and get real reporter data.

Forked from https://github.com/kmiyashiro/grunt-mocha because I am addicted to reporters. And because the new dependencies are prolly too much to ask for in a pull request. And because I'm antisocial, probably.

Also, if you don't need the gruntyness, https://github.com/metaskills/mocha-phantomjs is gonna be more your bag.

Broken.

  • running against multiple files doesn't clear counts between files
  • timers are all out of whack
  • huge blob of dependency for the JSON.decycle() in the phantom js shim
  • stack traces are not always perfect
  • "0 assertions passed (0s)" printout at end of grunt task

Meh.