@naturalcycles/junit-lib

Convert junit xml to html, merge multiple junit xml reports

Usage no npm install needed!

<script type="module">
  import naturalcyclesJunitLib from 'https://cdn.skypack.dev/@naturalcycles/junit-lib';
</script>

README

@naturalcycles/junit-lib

Convert junit xml to html, merge multiple junit xml reports.

npm code style: prettier

Why

I didn't find a good working library in npm to convert junit xml report to html.

Examples


# Convert `report.xml` into `report.html`
junit2html report.xml --out report.html

# Merge all xml files in `report` dir into one html report
junit2html './reports/**/*.xml' --out report.html

API

  • junit2html

Packaging

  • engines.node >= 10.13: Latest Node.js LTS
  • main: dist/index.js: commonjs, es2018
  • types: dist/index.d.ts: typescript types
  • /src folder with source *.ts files included

JUnit xml specification