Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/agracio/xml2mochawesome
- Owner: agracio
- License: mit
- Created: 2024-09-23T19:24:35.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-06T15:48:36.000Z (14 days ago)
- Last Synced: 2024-11-06T16:44:27.144Z (13 days ago)
- Language: XSLT
- Homepage:
- Size: 460 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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### 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...