Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mochajs/multi-reporter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mochajs/multi-reporter

Multiple reporter for Mocha

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npm version JavaScript Style Guide

@mochajs/multi-reporter

Multiple reporter for Mocha

Installation

$ npm i -D @mochajs/multi-reporter

Usage

Use --reporter in your test command.

{
  "scripts": {
    "test": "mocha --reporter @mochajs/multi-reporter"
  }
}

Or, add reporter to your configuration file.

{
  "reporter": "@mochajs/multi-reporter"
}

Create .reporters.json file.

{
  "spec": true,
  "xunit": {
    "output": "report.xml"
  }
}

Options

config

By default, it will use .reporters.json as config file. To use other file, use --reporter-options in your test command.

{
  "scripts": {
    "test": "mocha --reporter @mochajs/multi-reporter --reporter-options config=filename.json"
  }
}

Or, add reporter-option to your configuration file.

{
  "reporter": "@mochajs/multi-reporter",
  "reporter-option": [
    "config=filename.json"
  ]
}

Keywords

FAQs

Package last updated on 16 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc