Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schorfes/node-junitwriter
A junit reporter for node
https://github.com/schorfes/node-junitwriter
Last synced: 28 days ago
JSON representation
A junit reporter for node
- Host: GitHub
- URL: https://github.com/schorfes/node-junitwriter
- Owner: schorfES
- License: mit
- Created: 2015-03-13T18:08:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-18T20:48:48.000Z (3 months ago)
- Last Synced: 2024-10-10T18:44:37.409Z (28 days ago)
- Language: JavaScript
- Size: 396 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JUnitWriter
A junit reporter for node.
[![Travis Status](https://travis-ci.org/schorfES/node-junitwriter.png?branch=master)](https://travis-ci.org/schorfES/node-junitwriter)
## Installation
This package is available on [npm](https://www.npmjs.com/package/junitwriter/)
as: `junitwriter```` sh
npm install junitwriter
```## Methods
The documentation is work in progress
### Writer
#### new Writer()
Creates an instance of the junit reporter. When creating an instance a
testsuites rootnode is created internally which can be accessed through the
function `getTestsuites()`.#### getTestsuites()
Retuns the testsuites root node.
#### addTestsuite(name)
Adds and retuns a testsuite node inside the testsuites root node.
#### save(destination, callback)
This function saves the content of the report to a file at the given
`destination`.### Testsuites
#### addTestsuite(name)
Adds and retuns a testsuite node inside the testsuites root node.
#### incDisabled(amount)
#### incErrors(amount)
#### incFailures(amount)
#### incTests(amount)
#### setTime(seconds)
#### setName(name)
#### setSystemOut(out)
#### setSystemError(err)
#### showIds()
#### hideIds()
### Testsuite
Testsuite can appear multiple times as a child element of testsuites.
#### addTestcase(name, classname)
#### incDisabled(amount)
#### incErrors(amount)
#### incFailures(amount)
#### incTests(amount)
#### setTime(seconds)
#### setTimestamp(timestamp)
#### setName(name)
#### setSystemOut(out)
#### setSystemError(err)
#### setHostname(hostname)
#### setPackage(package)
#### setSkipped(skipped)
#### isSkipped()
#### showId()
#### hideId()
#### addProperty(name, value)
#### removeProperty(name)
#### updateProperty(name, value)
#### addError(message, type)
#### addFailure(message, type)
### Testcase
#### setName(name)
#### setClassname(classname)
#### setAssertions(assertions)
#### setTime(seconds)
## License
[LICENSE (MIT)](https://github.com/schorfES/node-junitwriter/blob/master/LICENSE)