Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

junitwriter

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

junitwriter

A junit reporter for node

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
721
decreased by-28.97%
Maintainers
1
Weekly downloads
 
Created
Source

JUnitWriter

A junit reporter for node.

Travis Status

Installation

This package is available on npm as: junitwriter

	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)

Keywords

FAQs

Package last updated on 08 Feb 2019

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