It would be beneficial to have Node.js debugging capabilities for tests.
Note:
Currently, when starting node-qunit CLI in debug mode using --debug-brk child processes created by testrunner are created with the same debugging port, which causes an error.
Requirements:
node-qunit should have a configurable parameter that will trigger child processes to run in debug mode on port provided by this parameter.
- If
node-qunit itself is running in debug mode and no port is provided by parameter, node-qunit should be able to find free port and use it for debugging of child process.
- Since
node-qunit spawns new process for each test file, debugging port should be configurable for each test file.
- Infinite loop validation should be disabled for child processes running in debug mode
Usage:
- Using
--debug parameter and list of ports in the same order as test files
$ node node_modules/qunit/bin/cli.js -c code.js -t test1.js test2.js --debug 54890 40893
- Starting
node-qunit in debug mode using --debug-brk
$ node --debug-brk=56566 node_modules/qunit/bin/cli.js -c code.js -t test1.js test2.js
It would be beneficial to have Node.js debugging capabilities for tests.
Note:
Currently, when starting
node-qunitCLI in debug mode using--debug-brkchild processes created by testrunner are created with the same debugging port, which causes an error.Requirements:
node-qunitshould have a configurable parameter that will trigger child processes to run in debug mode on port provided by this parameter.node-qunititself is running in debug mode and no port is provided by parameter,node-qunitshould be able to find free port and use it for debugging of child process.node-qunitspawns new process for each test file, debugging port should be configurable for each test file.Usage:
--debugparameter and list of ports in the same order as test filesnode-qunitin debug mode using--debug-brk