Bug#922716: RFP: node-gulp-spawn-mocha -- a plugin for gulp which runs Mocha tests in a separate process from the gulp process.
Package: wnpp
Severity: wishlist
* Package name : node-gulp-spawn-mocha
Version : 5.0.1
Upstream Author : Kenneth Powers
* URL : http://kldvekwm4tgy2es6h245d2dfbqrtioldwbakrvxcy3yptsorf6q6vmyd.onion/dir?ci=tip
* License : MIT
Programming Lang: javascript
Description : a plugin for gulp which runs Mocha tests in a separate process from the gulp process.
Each time tests are run a new child process is created meaning the test environment always starts cleanly,
i.e., globals are reset as are non-enumerable properties defined on native prototypes via
Object.defineProperty. This also means that if your tests crash the node process (e.g., process.exit(-1).)
then an error event is emitted rather than your whole gulp process crashing (good for watching).
The original gulp-mocha is fine in most circumstances. If you need your tests to run as a separate process
(or a separate process is simply your preference for the reasons specified above) or you need to use a
custom version of Mocha (e.g., a fork with bug fixes or custom functionality) then you should use this
plugin.
node-gulp-spawn-mocha is a dependency of mist ( #827314 )
Reply to: