Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with mocha #28

Open
sidorares opened this issue Sep 1, 2014 · 8 comments
Open

Integration with mocha #28

sidorares opened this issue Sep 1, 2014 · 8 comments

Comments

@sidorares
Copy link
Owner

I often use cli debugger with mocha via mocha debug test/foo/bar. It would be great to have mocha vimdebug test/foo/bar (if possible without modification to mocha, via mocha.opts + --require )

@faridnsh
Copy link

faridnsh commented Sep 1, 2014

Just a reminder that mocha isn't the only test runner out there...

@sidorares
Copy link
Owner Author

Of course, feel free to submit PR for yours :) ( and I'm not aware of others that can spawn test + debugger )

@AndrewRayCode
Copy link

@sidorares have you gotten this to work with vanilla mocha? that's what i'm looking at now

@sidorares
Copy link
Owner Author

@delvarworld no, I haven't looked at this yet

@sidorares
Copy link
Owner Author

@delvarworld afaik you can start mocha tests with --debug-brk, that way workflow should be identical as documented in the readme

@Seikho
Copy link

Seikho commented Dec 18, 2015

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

@sidorares
Copy link
Owner Author

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 )

@Seikho
Copy link

Seikho commented Dec 18, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants