Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qtsolv/squerge

Utility npm package to merge multiple test execution reports for SonarQube.
https://github.com/qtsolv/squerge

combine cypress merge reporting sonarqube xml

Last synced: 1 day ago
JSON representation

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

Awesome Lists containing this project

README

        

# squerge

Utility [npm](https://www.npmjs.com/) package to merge multiple test execution reports for [SonarQube](https://www.sonarqube.org/).

[![npm](https://img.shields.io/npm/dm/squerge)](https://www.npmjs.com/package/squerge)
[![npm](https://img.shields.io/npm/v/squerge)](https://www.npmjs.com/package/squerge)
[![Node.js CI](https://github.com/qtsolv/squerge/actions/workflows/node.js.yml/badge.svg?branch=main)](https://github.com/qtsolv/squerge/actions/workflows/node.js.yml)
[![codecov](https://codecov.io/gh/qtsolv/squerge/branch/main/graph/badge.svg?token=W6OAHVJKPS)](https://codecov.io/gh/qtsolv/squerge)

### Installation

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

```shell
npm install squerge
```

Or install globally to use the cli:

```shell
npm install --global squerge
```

### Usage

To use it from within code, use as below:

```javascript
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:

```shell
squerge -o reports/combined.xml "reports/*.spec.js.xml"
```

### License

See the [LICENSE](LICENSE) file.