This repository aggregates vendor and community projects containing JUnit XML test fixtures and examples for various testing frameworks and tools.
Centralized collection of real-world JUnit XML examples to inform and validate the Jux JUnit XML parser implementation.
URL: https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report.xsd Description: Official XML Schema for Maven Surefire test reports Maintained By: Apache Maven project License: Apache License 2.0
Relevant Formats:
- Maven Surefire/Failsafe test reports
- Standard format for Java projects using Maven
- Generated in
target/surefire-reports/TEST-*.xml
Documentation:
URL: https://xunit.net/docs/format-xml-v2 Description: XML report format for xUnit.net test framework (.NET) Maintained By: xUnit.net project License: Apache License 2.0
Relevant Formats:
- xUnit.net v2+ test reports
- .NET unit testing framework output
- Supports XSL-T transformations to HTML and NUnit formats
Key Elements:
<assemblies>root element withschema-versionattribute<assembly>elements for each test assembly<collection>grouping for test classes<test>elements with rich metadata
Documentation:
URL: https://docs.nunit.org/articles/nunit/technical-notes/usage/Test-Result-XML-Format.html Description: XML report format for NUnit test framework (.NET) Maintained By: NUnit project License: MIT License
Relevant Formats:
- NUnit 3.x test reports (different from NUnit 2.x format)
- .NET unit testing framework output
- Supported by many CI/CD tools
Key Elements:
<test-run>root element with run metadata<test-suite>elements for test fixtures and namespaces<test-case>elements with result, duration, assertions<output>for captured stdout/stderr
Documentation:
Repository: https://github.com/windyroad/JUnit-Schema
Path: windyroad-junit-schema/
Description: Most widely referenced XSD for Apache Ant's JUnit output format
Maintained By: Tom Howard (windyroad)
Key Files:
JUnit.xsd- XML Schema Definition for JUnit XML formatjenkins-junit.xsd- Jenkins-compatible variant
Relevant Formats:
- Apache Ant JUnit XML format (de facto standard)
- Used by junitparser and many validation tools
Note: This submodule was removed due to no license specified (all rights reserved). Documentation retained for reference only.
Repository: https://github.com/jenkinsci/xunit-plugin Description: Jenkins xUnit plugin with multiple JUnit XSD versions Maintained By: Jenkins CI community Key Files (in upstream repository):
src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd- Latest schemasrc/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-*.xsd- Historical versions
Relevant Formats:
- Jenkins JUnit XML format (widely used in CI/CD)
- Multiple schema versions for backward compatibility
- Supports Ant JUnit and Maven Surefire formats
Repository: https://github.com/junit-team/junit5
Path: junit5/
Description: Official JUnit 5 repository with Jenkins-compatible XSD
Maintained By: JUnit team
Key Files:
platform-tests/src/test/resources/jenkins-junit.xsd- XSD used in JUnit 5 tests
Relevant Formats:
- Jenkins JUnit XML format (MIT License)
- Reference implementation from official JUnit team
Repository: https://github.com/pytest-dev/pytest
Path: pytest/
Description: Official pytest repository containing comprehensive JUnit XML generation tests
Key Files:
testing/test_junitxml.py- Extensive test suite with xunit1 and xunit2 examplessrc/_pytest/junitxml.py- JUnit XML generation implementation
Relevant Formats:
- pytest xunit1 (legacy format with
junit_family=xunit1) - pytest xunit2 (modern format with
junit_family=xunit2)
Repository: https://github.com/jesper-raemaekers/python-polarion
Path: python-polarion/
Description: Python client library for Polarion ALM with xUnit XML import support
Maintained By: Jesper Raemaekers
License: MIT
Key Files:
polarion/xml.py— XML import functionalitypolarion/record.py— Test record handling
Key Features:
- Polarion REST API client
- xUnit XML import to test runs
- Work item and test case management
Relevant Formats:
- Polarion xUnit XML with custom properties
- Test run result imports
Polarion uses the standard JUnit XML schema with custom properties for ALM integration.
Schema Definition:
- Polarion references the windyroad JUnit.xsd as its base schema
- See also: python-polarion XML documentation
Polarion-Specific Properties (testsuite level):
polarion-project-id— Polarion project identifierpolarion-testrun-id— Test run identifierpolarion-testrun-title— Test run titlepolarion-user-id— User identifier for import
Polarion-Specific Properties (testcase level):
polarion-testcase-id— Links test to Polarion test caseverifies— Links test to requirements (e.g.,REQ-001)
Official Documentation:
- Siemens Polarion xUnit file example
- Betelgeuse Documentation — Python test case XML generator
Note: These tools were removed due to GPL licensing (incompatible with Apache-2.0). Documentation retained for reference only.
Repository: https://github.com/mkoura/dump2polarion License: GPL-2.0 (removed) Description: Python tool for generating Polarion-compatible xUnit XML Maintained By: Martin Kourim Key Features:
- Polarion modified xUnit format examples
- Test result transformation utilities
- Property mapping for Polarion ALM integration
Relevant Formats:
- Polarion modified xUnit with custom properties
- Requirements traceability examples
Repository: https://github.com/RedHatQE/polarize License: GPL-3.0 (removed) Description: Java library for generating Polarion-compatible test metadata Maintained By: Red Hat QE Key Features:
- Java annotation-based Polarion integration
- xUnit XML generation with Polarion properties
- TestNG integration examples
Relevant Formats:
- Polarion modified xUnit from Java/TestNG
- Custom property mappings
Repository: https://github.com/RedHatQE/polarizer License: GPL-3.0 (removed) Description: Another Red Hat project for Polarion test automation Maintained By: Red Hat QE Key Features:
- Polarion xUnit XML export
- Test case metadata management
- CI/CD integration patterns
Relevant Formats:
- Polarion modified xUnit with CI/CD metadata
- Test run configuration examples
Note: This submodule was removed due to no license specified (all rights reserved). Documentation retained for reference only. Visit https://github.com/testmoapp/junitxml for comprehensive JUnit XML format documentation.
Repository: https://github.com/testmoapp/junitxml Description: JUnit XML file format reference guide and examples Maintained By: Testmo (testmoapp) Key Features:
- Comprehensive JUnit XML format documentation
- De facto standard format conventions
- Multiple example files covering common use cases
- Format specification and best practices
Key Files (in upstream repository):
examples/junit-basic.xml- Basic JUnit XML structureexamples/junit-complete.xml- Complete example with all elementsexamples/testcase-properties.xml- Test case propertiesexamples/testcase-output.xml- System output captureexamples/conventions.xml- Common conventions and patterns
Relevant Formats:
- Standard JUnit XML format baseline
- Common conventions across testing tools
- CI/CD integration patterns
Repository: https://github.com/cucumber/junit-xml-formatter
Path: cucumber-junit-xml-formatter/
Description: Cucumber JUnit XML formatter for reporting BDD test results
Maintained By: Cucumber community
Key Files:
jenkins-junit.xsd- Jenkins-compatible JUnit XSD- Cucumber Gherkin to JUnit XML transformation
Relevant Formats:
- BDD/Gherkin scenarios as JUnit XML
- Jenkins-compatible format
Repository: https://github.com/jest-community/jest-junit
Path: jest-junit/
Description: Jest reporter creating compatible JUnit XML files
Maintained By: Jest community
Key Files:
__tests__/lib/junit.xsd- JUnit XSD for validation- Jest test results to JUnit XML transformation
Relevant Formats:
- JavaScript/Node.js test framework output
- Jenkins CI dtkit format
Repository: https://github.com/karma-runner/karma-junit-reporter
Path: karma-junit-reporter/
Description: Karma plugin for JUnit XML reporting
Maintained By: Karma community
Key Files:
junit-schema.xsd- JUnit schema definition- Browser test runner JUnit XML output
Relevant Formats:
- Browser-based JavaScript testing
- Karma test runner format
git clone <repository-url> junit-xml-test-fixtures
cd junit-xml-test-fixtures
git submodule update --init --recursivegit submodule update --remote --merge# windyroad Apache Ant XSD
cat windyroad-junit-schema/JUnit.xsd
# JUnit 5 official Jenkins-compatible XSD
cat junit5/platform-tests/src/test/resources/jenkins-junit.xsd# View pytest JUnit XML tests
cat pytest/testing/test_junitxml.py
# View pytest JUnit XML implementation
cat pytest/src/_pytest/junitxml.py# Cucumber BDD JUnit XML
cat cucumber-junit-xml-formatter/jenkins-junit.xsd
ls cucumber-junit-xml-formatter/test/
# Jest JavaScript testing
cat jest-junit/__tests__/lib/junit.xsd
ls jest-junit/__tests__/
# Karma browser testing
cat karma-junit-reporter/junit-schema.xsd
ls karma-junit-reporter/test/When adding new test fixtures to Jux based on these examples:
- Extract minimal representative examples
- Document the source project and version
- Add XML comments explaining format-specific features
- Place in appropriate
test/fixtures/junit_xml/subdirectories:pytest/for pytest examplespolarion/for Polarion xUnit examplesjavascript/for Jest, Karma, Cucumber examplesschema/for XSD schema definitions
Each submodule has its own license. All included submodules use permissive licenses compatible with Apache-2.0:
Schema Definitions:
- windyroad-junit-schema: Apache License 2.0
- junit5: Eclipse Public License 2.0
Testing Frameworks:
- pytest: MIT License
Polarion Tools:
- python-polarion: MIT License
JavaScript/BDD Frameworks:
- cucumber-junit-xml-formatter: MIT License
- jest-junit: Apache License 2.0
- karma-junit-reporter: MIT License
Removed Submodules (documentation retained for reference):
- dump2polarion: Removed (GPL-2.0 - copyleft, incompatible with Apache-2.0)
- polarize: Removed (GPL-3.0 - copyleft, incompatible with Apache-2.0)
- polarizer: Removed (GPL-3.0 - copyleft, incompatible with Apache-2.0)
- testmoapp: Removed (no license specified - all rights reserved)
- jenkinsci-xunit-plugin: Removed (no license specified - all rights reserved)
When extracting examples for Jux test fixtures, ensure compliance with source project licenses.
This repository is maintained as part of the Jux project for reference purposes only. The submodules are not modified - they serve as upstream references for JUnit XML format validation.
Last Updated: 2026-01-20 Maintainer: Jux project team