Skip to content

A hacky wrapper to run node.js lib Mocha tests via grunt. (fork of grunt-simple-mocha)

License

Notifications You must be signed in to change notification settings

gregrperkins/grunt-mocha-hack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.)

About

A hacky wrapper to run node.js lib Mocha tests via grunt. (fork of grunt-simple-mocha)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •