Socket
Socket
Sign inDemoInstall

xunit-file

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xunit-file

Basically the same reporter as mocha's xunit reporter, but writes the output in a file.


Version published
Weekly downloads
5.9K
decreased by-14.32%
Maintainers
1
Weekly downloads
 
Created
Source

xunit-file

Basically the same reporter as mocha's xunit reporter, but writes the output to a file.

How to use

  1. Add "xunit-file" to your package.json as a developmentDependency
  2. Run mocha with -R xunit-file or --reporter xunit-file

The xunit output file is saved to the file given in the XUNIT_FILE environment variable, the file named in config.json, or process.cwd()/xunit.xml

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 just the original xunit reporter from mocha only writing the result in an xml file.

Keywords

FAQs

Package last updated on 17 Oct 2013

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