0.0.8 • Published 9 years ago

xunit-actual-file v0.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

xunit-file

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

npm.io npm.io

Usage

npm install xunit-file --save-dev

Run mocha with -R xunit-file or --reporter xunit-file

The xunit.xml output is saved in process.cwd()/xunit.xml by default.

Options

To change the output and activate terminal output, you can create a config.json, or use environment variables.

config.json

{
    "file" : "xunit.xml",
    "consoleOutput" : {
      "suite" : true,
      "test" : true,
      "fail" : false
    }
}

environment variables

$ XUNIT_FILE=output/xunit.xml mocha -R xunit-file // writes result to output/xunit.xml
$ LOG_XUNIT=true mocha -R xunit-file // activates terminal output

Credits

This reporter is just the original xunit reporter from mocha only writing the result in an xml file.

LICENSE

MIT

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago