# mocha-stackdriver-merge

> Mocha report merger to log total test results and stats with Google Cloud Logging API

Latest version **0.0.6** (published 2021-03-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install mocha-stackdriver-merge
pnpm add mocha-stackdriver-merge
yarn add mocha-stackdriver-merge
bun add mocha-stackdriver-merge
```

Provides the command `mocha-stackdriver-merge`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2021-03-29 |
| First published | 2021-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Torran Turner |
| Maintainers | miscreancy |
| Keywords | mocha, stackdriver, reporter, merge, json |

## Links

- npm: https://www.npmjs.com/package/mocha-stackdriver-merge
- Homepage: https://github.com/miscreancy/mocha-stackdriver-merge
- Issues: https://github.com/miscreancy/mocha-stackdriver-merge/issues
- npm.io page: https://npm.io/package/mocha-stackdriver-merge

## Dependencies (3)

- [yargs](https://npm.io/package/yargs.md) ^16.2.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.1.0
- [@google-cloud/logging](https://npm.io/package/@google-cloud/logging.md) ^9.1.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.6 (latest) — 2021-03-29
- 0.0.5 — 2021-03-15
- 0.0.4 — 2021-03-15
- 0.0.3 — 2021-03-12
- 0.0.2 — 2021-03-12
- 0.0.1 — 2021-03-12

## README

# Mocha Stackdriver Merge

Merge tool to be used with .json files generated with [mocha-stackdriver-reporter-stats](https://github.com/Miscreancy/mocha-stackdriver-reporter-stats). Inspired by (mochawesome-merge)[https://github.com/Antontelesh/mochawesome-merge], google-logger lifted from [mocha-stackdriver-reporter](https://github.com/jouni-kantola/mocha-stackdriver-reporter).

## Install

`npm install mocha-stackdriver-merge`


## Usage

```bash
npx [path-to-reports]/[report_prefix]_*.json [-o/--output [path-to-output-file]/[output_filename].json -n/--no-cloud ]
```

By default, it does not write a file, and instead submits the merged object to the cloud logger with the details in the file.

If `--no-cloud` is specified, it __will__ write a file to `[path-to-reports]/[report_prefix]_merged.json`; to overwrite the output file location pass in `-o` with the file location. Specifying `-o` without `--no-cloud` both pass the log to Stackdriver and write the file for your perusal.

## Cypress

This was designed with Cypress in mind - recommended usage would be to pop a script in your package.json within cypress so you can `npm run` a combination of Cypress and this reporter.

---
_Source: https://npm.io/package/mocha-stackdriver-merge · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
