https://github.com/mtreinish/junitxml2subunit
A tool to convert JUnit XML files to Subunit v2
https://github.com/mtreinish/junitxml2subunit
junit-xml subunit
Last synced: 4 months ago
JSON representation
A tool to convert JUnit XML files to Subunit v2
- Host: GitHub
- URL: https://github.com/mtreinish/junitxml2subunit
- Owner: mtreinish
- License: gpl-3.0
- Created: 2018-06-07T23:10:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-26T06:09:53.000Z (almost 2 years ago)
- Last Synced: 2025-07-23T08:40:40.945Z (11 months ago)
- Topics: junit-xml, subunit
- Language: Rust
- Homepage:
- Size: 143 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
junitxml2subunit
================
[![junitxml2subunit on Travis CI][travis-image]][travis]
[![junitxml2subunit on crates.io][cratesio-image]][cratesio]
[travis-image]: https://travis-ci.com/mtreinish/junitxml2subunit.svg?branch=master
[travis]: https://travis-ci.org/mtreinish/junitxml2subunit
[cratesio-image]: https://img.shields.io/crates/v/junitxml2subunit.svg
[cratesio]: https://crates.io/crates/junitxml2subunit
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](https://www.rust-lang.org/)
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.