You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However if I kill the process using Ctrl+C before the timeout, I don't get the coverage information for the code executed until that point.
Use case: I launch a service as a separate process and then launch integration tests (by sending requests to the service). Then I kill the service and check the coverage to make the tests pass. istanbul and nyc handle process kill correctly.
@aalexgabi what Node.js version are you running on, out of curiosity? We have unit tests for CTRL^C in Node.js I believe, so this might be specific to c8.
@aalexgabi what Node.js version are you running on, out of curiosity? We have unit tests for CTRL^C in Node.js I believe, so this might be specific to c8.
Activity
bcoe commentedon Jan 13, 2020
@aalexgabi what Node.js version are you running on, out of curiosity? We have unit tests for
CTRL^Cin Node.js I believe, so this might be specific toc8.zbjornson commentedon Jan 14, 2020
This I believe is half the problem in #166. (I'm using Node.js v12.10.0 and Win10 x64.)
aalexgabi commentedon Jan 14, 2020
@bcoe I'm using node
v13.5.0.aalexgabi commentedon Jan 14, 2020
@bcoe @zbjornson Seems to be a node problem:
aalexgabi commentedon Sep 15, 2020
I created an issue for node: nodejs/node#35212
Should c8 attach an event handler for SIGINT/SIGTERM etc. in the meantime ?
fix(test-utils): use stdio transport for test server
fix(test-utils): use stdio transport for test server (#175)