#subunit #junitxml

app junitxml2subunit

A tool to convert junitxml files to subunit v2

3 releases (stable)

Uses old Rust 2015

1.0.1 Mar 25, 2020
1.0.0 Jun 12, 2018
0.1.0 Jun 9, 2018

GPL-3.0 license

28KB
324 lines

junitxml2subunit

junitxml2subunit on Travis CI junitxml2subunit on crates.io

This repo contains a tool for converting junitxml files to the subunit v2 protocol.

Building

junitxml2subunit is written in Rust, so you'll need to grab a Rust installation in order to compile it. Building is easy:

$ git clone https://github.com/mtreinish/junitxml2subunit
$ cd junitxml2subunit
$ cargo build --release

Running

Once you've built junitxml2subunit running it is straightforward. The command takes a single argument the path to the junitxml file to convert. It will then print the subunit v2 stream for that file to STDOUT. For example:

$ junitxml2subunit results.xml

Optionally there is a -o/--output flag which can be used to write the subunit v2 stream to a file.

Dependencies

~2.5MB
~39K SLoC

t{^