I really don't know why this happens.
I use a shellscript to run the tests:
"$PWD"/node_modules/.bin/mocha \
-b \
--compilers coffee:coffee-script/register \
--require coffee-coverage/register-istanbul \
--require should \
--reporter spec \
--timeout 120000 \
--slow 300 \
"$@"
You can see all the code here
The problem is that --require coffee-coverage/register-istanbul line throw an Error related with the coverage folder:
✓ release a new version and hook pre releases plugins in order (163ms)
16 passing (300ms)
Failed to write coverage data Error: ENOENT, no such file or directory 'coverage/'
at Error (native)
at Object.fs.mkdirSync (fs.js:747:18)
at exports.mkdirs (/Users/josefranciscoverdugambin/Projects/bumped/bumped/node_modules/coffee-coverage/lib/utils/helpers.js:43:14)
at process.<anonymous> (/Users/josefranciscoverdugambin/Projects/bumped/bumped/node_modules/coffee-coverage/lib/register.js:116:11)
at process.emit (events.js:107:17)
at process.exit (node.js:600:17)
at done (/Users/josefranciscoverdugambin/Projects/bumped/bumped/node_modules/mocha/bin/_mocha:406:32)
at afterWrite (_stream_writable.js:361:3)
at _stream_writable.js:349:9
at process._tickCallback (node.js:355:11)
the strange thing is that the folder doesn't exist before I run the script (good) and after the exceptions exists.
Any idea of what happens?
I really don't know why this happens.
I use a shellscript to run the tests:
You can see all the code here
The problem is that
--require coffee-coverage/register-istanbulline throw an Error related with the coverage folder:the strange thing is that the folder doesn't exist before I run the script (good) and after the exceptions exists.
Any idea of what happens?