Open sidorares opened 10 years ago
Just a reminder that mocha isn't the only test runner out there...
Of course, feel free to submit PR for yours :) ( and I'm not aware of others that can spawn test + debugger )
@sidorares have you gotten this to work with vanilla mocha? that's what i'm looking at now
@DelvarWorld no, I haven't looked at this yet
@DelvarWorld afaik you can start mocha tests with --debug-brk
, that way workflow should be identical as documented in the readme
You can also debug the mocha
unit tests by running by debugging node_modules/mocha/bin/_mocha
from your root project folder. This assumes you have mocha installed as a (dev-)dependency in your project (as it should be).
yes, I'm just thinking about best way on how to integrate this for mocha users which would require wery little configuration ( line in mocha.opts or something similar )
Instructions in the readme should be sufficient, in my opinion.
Create a debug.js
in the root project require that contains the code:
require('node_modules/mocha/bin_mocha')
Then use node-vim-inspector debug.js
to get started.
I often use cli debugger with mocha via
mocha debug test/foo/bar
. It would be great to havemocha vimdebug test/foo/bar
(if possible without modification to mocha, via mocha.opts + --require )