Utility npm package to merge multiple test execution reports for SonarQube.
To install the library in your project, use below command:
npm install squerge
Or install globally to use the cli:
npm install --global squerge
To use it from within code, use as below:
const {merge} = require('squerge');
merge(
['reports/*.spec.js.xml'],
'reports/combined.xml'
).then(() => {
// done saving to reports/combined.xml
}).catch((err) => {
// failed for some reason
});
Or you can directly merge reports from command-line as below:
squerge -o reports/combined.xml "reports/*.spec.js.xml"
See the LICENSE file.