This is meant to be used with Webdriverio's JUnit reporter.
A simple CLI tool to convert generated JUnit test results to HTML reports.
This should be added to your package.json
, as follows:
Note: -i
and -o
are required, otherwise default paths will be used.
"scripts": {
...
"test": "wdio && wdio-junit-to-html -i <INPUT_DIRECTORY> -o <OUTPUT_DIRECTORY>",
...
},
-i, --input <input>
The input folder path (relative)
-o, --output <output_directory>
The output folder path (relative)
-s, --single
Export all reports as one file.
-l, --log
Log basic information about what is being done.