istanbul icon indicating copy to clipboard operation
istanbul copied to clipboard

Question: can Istanbul be controlled while it is collecting code coverage data?

Open dtgriscom opened this issue 6 years ago • 0 comments

I'm starting to use Istanbul to measure code coverage with my Node-based server system under Linux. I'm using a custom test system that stimulates the server and evaluates results. I'd like to have Istanbul trace coverage while the testing runs, but at the moment I have to restart the Istanbul/server system before starting tests, and exit after every set of tests to generate the code coverage report.

I'd like to leave the Istanbul/server system running continuously, and without restarting a) reset the statistics, and b) trigger generation of the coverage report. This could be done internal to the server code (perhaps by calling Istanbul functions), or external to the server (perhaps by sending signals).

Is there a way to both a) reset the code coverage statistics and b) trigger writing of the coverage report(s) without exiting and restarting the whole system?

(Posted again at https://github.com/istanbuljs/nyc/issues/813 ...)

dtgriscom avatar Apr 10 '18 19:04 dtgriscom