Socket
Socket
Sign inDemoInstall

junit-reports-combiner

Package Overview
Dependencies
3
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    junit-reports-combiner

Combine JUnit XML reports from two and more.


Version published
Weekly downloads
4
Maintainers
1
Install size
339 kB
Created
Weekly downloads
 

Readme

Source

junit-reports-combiner

npm version CircleCI codecov Known Vulnerabilities

Combine JUnit XML reports from two and more.

The reports of two and more can be combined using the set operations union, intersection, and difference.

Installation

Requires

  • Node.js 10+

CLI

npm i -g junit-reports-combiner

Modules

npm i junit-reports-combiner

Usage

CLI

Combines two reports:

junit-reports-combiner TEST-example.FooTest.xml TEST-example.BarTest.xml

See the man junit-reports-combiner for details.

Modules

import { DOMParser } from 'xmldom';
import JUnitReportsCombiner from 'junit-reports-combiner';

const parser = new DOMParser();

const xml1 = `
  <testsuite tests="1" failures="0" name="example.FooTest" time="0.001" errors="0" skipped="0">
    <testcase classname="example.FooTest" name="testFoo" time="0.001"/>
  </testsuite>
`;
const doc1 = parser.parseFromString(xml1, 'application/xml');

const xml2 = `
  <testsuite tests="1" failures="1" name="example.BarTest" time="0.001" errors="0" skipped="0">
    <testcase classname="example.BarTest" name="testBar" time="0.001">
      <failure type="java.lang.AssertionError">java.lang.AssertionError</failure>
    </testcase>
  </testsuite>
`;
const doc2 = parser.parseFromString(xml2, 'application/xml');

const combiner = new JUnitReportsCombiner();
const doc3 = combiner.combine(doc1, doc2);

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/naokikimura/junit-reports-combiner

License

The gem is available as open source under the terms of the MIT License.

Keywords

FAQs

Last updated on 07 Mar 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc