Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/agracio/xml2mochawesome

XML test reports to Mochawesome converter
https://github.com/agracio/xml2mochawesome

Last synced: 11 days ago
JSON representation

XML test reports to Mochawesome converter

Awesome Lists containing this project

README

        

## Test report to Mochawesome and JUnit converter

### Overview

- Convert your XML/TRX test reports to Mochawesome for easy viewing and troubleshooting.
- Convert test reports to JUnit format.

### Supported report formats

- JUnit XML Format
- NUnit 3.0+ XML Format
- xUnit.net v2+ XML Format
- Visual Studio TRX Format

### What is Mochawesome

Mochawesome is a custom test reporter originally designed for Mocha Javascript testing framework.
It features a clean modern interface allowing users to easily view and navigate test runs.
https://github.com/adamgruber/mochawesome

Mochawesome Report

### List of supported features

- Simple, clean, and modern design
- Per suite charts (via ChartJS)
- Stack trace for failed tests
- Support for displaying context information
- Filters to display only the tests you want
- Responsive and mobile-friendly
- Offline viewing

### Features not supported by converter

- Support for test and suite nesting
- Displays before and after hooks
- Review test code inline

### All XML test types

- Converts <skipped> test messages to Mochawesome test context values.
- Converts <failure> and <error> elements to Mochawesome error stack.
- Test suites are displayed in alphabetical order by `file`, `classname` and `name` attributes.
- Tests suites without any tests are not displayed.
- Attachments currently not supported.

### JUnit

- Converts `testcase` **<properties>**, **<system-out>** and **<system-err>** elements to Mochawesome test context.
- Nested tests and test suites currently not supported.

### NUnit

- NUnit XML version 3 and higher is supported.
- Converts `test-case` **<properties>** elements to Mochawesome 'Properties' test context.
- Converts `test-case` **<output>** elements to Mochawesome 'system-out' test context.
- Nested `test-suite` elements are flattened and appear in `classname->name` order.

### xUnit

- xUnit.net v2+ XML is supported.
- Converts `test` **<traits>** elements to Mochawesome 'Properties' test context.
- Supports single **<assembly>** per file, if multiple assemblies are present only first will be converted.

### Visual Studio TRX

- Does not resolve test suite and test times.

### Usage

## Implementation and documentation in progress...