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

@seadub/danger-plugin-junit

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

@seadub/danger-plugin-junit

Add your Junit XML test failures to Danger

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
87
decreased by-17.92%
Maintainers
1
Weekly downloads
 
Created
Source

danger-plugin-junit

Build Status npm version

Add your Junit XML test failures to Danger

Usage

Install:

npm install danger-plugin-junit --save-dev
# or
yarn add danger-plugin-junit --dev

At a glance:

// dangerfile.js
import junit from 'danger-plugin-junit'

async function main() {
	await junit({ pathToReport: './build/reports/**/TESTS*.xml' })
}

main()
	.then(() => process.exit(0))
	.catch(err => {
		fail(err.toString());
		process.exit(1);
	});

The default pathToReport value is './build/reports/**/TESTS*.xml' The value is a glob string to gather up test result files.

This plugin will only report test failures and errors. If any tests fail, it will report a single fail() message and record a table of the failed tests using markdown().

An example of what is produced is below:

Changelog

See the GitHub release history.

Contributing

See CONTRIBUTING.md.

Keywords

FAQs

Package last updated on 30 Aug 2021

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