Skip to content

qtsolv/squerge

Repository files navigation

squerge

Utility npm package to merge multiple test execution reports for SonarQube.

npm npm Node.js CI codecov

Installation

To install the library in your project, use below command:

npm install squerge

Or install globally to use the cli:

npm install --global squerge

Usage

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"

License

See the LICENSE file.