# testem-multi-reporter

> A testem reporter for running multiple reporters

Latest version **1.2.0** (published 2018-04-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install testem-multi-reporter
pnpm add testem-multi-reporter
yarn add testem-multi-reporter
bun add testem-multi-reporter
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2018-04-09 |
| First published | 2017-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Xander Dumaine |
| Maintainers | xdumaine |
| Keywords | testem, reporter |

## Links

- npm: https://www.npmjs.com/package/testem-multi-reporter
- Repository: https://github.com/xdumaine/testem-time-reporter
- Homepage: https://github.com/mypurecloud/testem-multi-reporter#readme
- Issues: https://github.com/mypurecloud/testem-multi-reporter/issues
- npm.io page: https://npm.io/package/testem-multi-reporter

## Recent versions

- 1.2.0 (latest) — 2018-04-09
- 1.1.0 — 2018-02-08
- 1.0.1 — 2017-05-10
- 1.0.0 — 2017-05-10

## README

# Testem Multi Reporter

Helpful in running multiple reporters for the same test run. For example,
in CI, you can output a failure only, dot, or time reporter to the console, and
an xunit report to a file.

## Installation

    npm install --save-dev testem-multi-reporter

## Usage

Create a `testem.js` config file that sets reporter to `testem-multi-reporter`,
and pass it the other reporters you want to use.

````
const MultiReporter = require('testem-multi-reporter');
const TimeReporter = require('testem-time-reporter');
const XunitReporter = require('testem/lib/reporters/xunit_reporter');

const reporters = [{
  ReporterClass: TimeReporter,
  args: [{ out: process.stdout }]
}, {
  ReporterClass: XunitReporter,
  args: [false, 'tests/xunit.xml', { get: () => false }]
}];
const multiReporter = new MultiReporter({ reporters });

module.exports = {
  framework: 'qunit',
  test_page: 'tests/index.html?hidepassed&coverage',
  disable_watching: true,
  launch_in_ci: [
    'PhantomJS'
  ],
  reporter: multiReporter
};
````

Run tests in an Ember CLI project, reporting only failures:

    ember test --config-file ~/work/project/testem.js

## Notes

This currently doesn't work with `ember test --module some-module` because Ember CLI
rewrites the `testem.json` file to accomplish this, and doesn't support the
`testem.js` file.

See [Ember CLI config rewriting](https://github.com/ember-cli/ember-cli/blob/f4844e674d35a3651693954fc9baf0dbb03cc22f/lib/commands/test.js#L51)
and [testem.js parsing](https://github.com/airportyh/testem/blob/aa6e9767ca81ae031095779c733882ba42184f42/lib/config.js#L86).

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