vscode-mocha-test-adapter
vscode-mocha-test-adapter copied to clipboard
disable mocha parallel mode if tests are being debugged
If mocha is set to run in parallel mode, then breakpoints in test code fail to be hit. This is because mocha itself tries to run tests using worker pool, while debugger is waiting on main mocha thread.
Parallel mode in general does not make sense while trying to debug tests using this extension. Ignoring parallel mode setting while running the tests in debug mode fixes the breakpoint problem.
this will partly fix #238 (breakpoints not hit when parallel is true)