Giter Club home page Giter Club logo

merge-junit's Introduction

Simple CLI tool to merge multiple junit files

Inspired by weiwei/junitparser

Installation

Install the package globally:

npm install -g merge-junit-suites

Usage

merge-junit-suites --help
Usage: merge-junit-suites [options] [command]

Options:
  -p, --path <value>  Path containing xml files
  -h, --help          display help for command

Commands:
  verify              Verify testsuites (find duplicates)
  merge [options]     Merge multiple test suites
  help [command]      display help for command

merge-junit-suites merge --help
Usage: merge-junit-suites merge [options]

Merge multiple test suites

Options:
  -n, --name <suitename>  Name of root test suite (added to <testsuites name="..">). (default: "junit tests")
  -o, --output <path>     Path to output files to. If omitted, prints to stdout. Default filename if omitted is junit-merged.xml
  -h, --help              display help for command

Examples:

Verify

merge-junit-suites verify --path /path/to/xml-dir

Returns a count of duplicate testcase names + list of name&classname

Merge

merge-junit-suites merge --path /path/to/xml-dir --name "My Test Suite" --output /path/to/output

Will combine all testsuites in /path/to/xml-dir (all .xml files), add name="My test suite" to <testsuites> and output to /path/to/output/junit-merged.xml

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.