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

spec-xunit-file

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

spec-xunit-file

Mocha reporter which displays Spec output and generates xunit XML file

  • 0.0.1-3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

spec-xunit-file

Mocha test reporter. Displays 'spec' reporter output to stdout and generates a xunit XML file in background.

Based upon xunit-file reporter

How to use

  1. Install spec-xunit-file
> npm install --save-dev spec-xunit-file
  1. If using mocha cli with use the -R or --reporter option
> mocha -R spec-xunit-file

or

> mocha --reporter spec-xunit-file

Options

The xunit output file is saved by default in a file called xunit.xml in the current directory i.e. process.cwd()/xunit.xml

To override this file or location use the XUNIT_FILE environment varrible

> XUNIT_FILE=output/xunit.xml mocha -R xunit-file

Set LOG_XUNIT environment variable, if you want the output in the console and xml file.

> LOG_XUNIT=true mocha -R xunit-file

Credits

This reporter is based on xunit-file which in-turn based on the original xunit reporter from mocha only writing the result in an xml file.

Keywords

FAQs

Package last updated on 05 Dec 2014

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