/
Merge multiple NYC coverage files into one
Merge multiple NYC coverage files into one
Problem
Sending multiple coverage files to SeaLights might have a network cost and we will often prefer sending only one files. In order to do that, we will need to first merge all the NYC coverage files into one and then send it to SeaLights.
Solution
Install the istanbul-merge package
npm install istanbul-merge
Make a string variable including all the files to merge
json_files=$(find . ~+ -name "*.json" -print)
Run the merge command
istanbul-merge --out coverage.raw.json "$json_files"
Upload the file to SeaLights
, multiple selections available,
Related content
NodeJS - JavaScript heap out of memory
NodeJS - JavaScript heap out of memory
Read with this
Using Node.js Agents - Uploading multiple files
Using Node.js Agents - Uploading multiple files
More like this
Running Tests using Mocha test framework
Running Tests using Mocha test framework
More like this
Using Node.js Agents - Scanning a build
Using Node.js Agents - Scanning a build
More like this
Running Tests using Karma test framework
Running Tests using Karma test framework
More like this
Running Tests using AVA framework
Running Tests using AVA framework
More like this