0.0.2-1 • Published 8 years ago

spec-xunit-file-deepeq v0.0.2-1

Weekly downloads
13
License
MIT
Repository
github
Last release
8 years ago

spec-xunit-file-deepeq

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

Based upon spec-xunit-file reporter

Add functionality includes the ability to dump deeply equal actual and expected json values to XML test results.

How to use

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

or

> mocha --reporter spec-xunit-file-deepeq

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 spec-xunit-file which is in turn based on xunit-file which in-turn based on the original xunit reporter from mocha only writing the result in an xml file.

0.0.2-1

8 years ago

0.0.2

8 years ago

0.0.1-7

8 years ago

0.0.1-6

8 years ago

0.0.1-5

8 years ago

0.0.1-4

8 years ago

0.0.1-3

8 years ago