hbenl / vscode-mocha-test-adapter

Mocha Test Adapter for the VS Code Test Explorer
MIT License
91 stars 31 forks source link

disable mocha parallel mode if tests are being debugged #244

Open eramitmittal opened 1 year ago

eramitmittal commented 1 year ago

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.

eramitmittal commented 1 year ago

this will partly fix #238 (breakpoints not hit when parallel is true)