A hacky wrapper to run node.js lib Mocha tests via grunt. (fork of grunt-simple-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.
tasks
test
.gitignore
.travis.yml
Gruntfile.js
LICENSE-MIT
README.md
package.json

README.md

build status

grunt-mocha-hack

Forked version of grunt-simple-mocha.

Grunt really doesn't like running after uncaughtExceptions.

But Mocha really likes letting uncaughtExceptions run free.

What to do?

Imgur

Converting from grunt-simple-mocha

// package.json

"grunt-simple-mocha": "~0.x.x"
// -- to --
"grunt-mocha-hack": "~0.1.0"
// grunt.js or Gruntfile.js

simplemocha: {
  // ... 
}
// -- to --
'mocha-hack': {
  // ...
}

grunt.loadNpmTasks('grunt-simple-mocha');
// -- to --
grunt.loadNpmTasks('grunt-mocha-hack');

If you're running tests that should actually be in a browser engine, try: grunt-mocha.

Seriously, though, this project should be dissolved once this shit lands in earnest. (node v0.9.5 looks like the first version with that commit.)