Skip to content

Instantly share code, notes, and snippets.

View prabhasjoshi's full-sized avatar

Prabhas Joshi prabhasjoshi

  • Razorpay
  • Bangalore
View GitHub Profile
@merlosy
merlosy / merge-cobertura.js
Last active February 21, 2023 12:22
Merge multiple cobertura report in XML (node script)
/**
* This is a node script to merge cobertura reports in XML format.
* It requires `xml2js` : `npm i -D xml2js`
*
* Execute with:
* ```
* node merge-cobertura.js coverage/file1.xml coverage/file2.xml to=coverage-final.xml
* ```
* @see https://github.com/Leonidas-from-XIV/node-xml2js
* @author Jérémy Legros