Skip to content

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

License

Notifications You must be signed in to change notification settings

yotamshapira/xunit-file

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

LICENSE

MIT

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%