skillfed

junit-xml-2

Fork of https://github.com/kyrus/python-junit-xml that has tarball published to pypi

junit-xml-2 v1.9 205.8K downloads/30d#9,581 on PyPI
Permissive license MIT Abandoned released

What it is and what it does

junit-xml-2 is a fork of the original python-junit-xml library, packaged for PyPI distribution. It generates JUnit XML test result files from Python test data—a format widely supported by CI/CD platforms, test aggregators, and IDE test runners. The package takes test case and suite objects and serializes them to XML that conforms to the JUnit schema, allowing test results to be reported and tracked across build pipelines.

The package depends only on six for Python 2/3 compatibility, keeping installation lightweight. However, it is abandoned: the last release was September 2020 with no subsequent maintenance. It exists primarily to serve as a stable, published distribution for projects like Homebrew that need a PyPI-hosted version. If you need active development, bug fixes, or support for evolving test standards, you should evaluate maintained alternatives.

Use it for:

  • Export test results from a Python test runner to JUnit XML for ingestion by Jenkins, GitLab CI, or GitHub Actions
  • Generate test reports that can be parsed and aggregated by test management or quality dashboard tools
  • Integrate custom Python test frameworks with CI/CD systems that expect JUnit-formatted output
  • Create test result artifacts for Homebrew or other package managers that depend on PyPI-hosted JUnit XML generation

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Generates JUnit XML test result reports from Python test data, enabling integration with CI/CD systems and test reporting tools that consume JUnit format.

Yes, if you need a stable, unchanging JUnit XML writer and are comfortable with an abandoned package. The low install friction, permissive license, and zero known vulnerabilities make it safe to use. However, only adopt it if you've confirmed that no actively maintained alternative meets your needs—abandonment means no bug fixes, security patches, or feature updates will arrive.

Install

junit-xml-2 on PyPI

pip

pip install junit-xml-2

uv

uv add junit-xml-2

poetry

poetry add junit-xml-2

Installing junit-xml-2

Before you install

Low install friction with a single lightweight dependency (six). However, the package is abandoned—last release was 2020-09-30 and no commits or maintenance activity since. Use only if you need a stable, unchanging JUnit XML writer and cannot depend on actively maintained alternatives.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it safe for commercial and open-source projects.

Quickstart

pip install junit-xml-2

from junit_xml import TestCase, TestSuite

test_case = TestCase('test_name')
test_suite = TestSuite('suite_name', [test_case])
with open('output.xml', 'w') as f:
    TestSuite.to_file(f, [test_suite])

Verify before relying

  • Whether the fork diverges meaningfully from the original kyrus/python-junit-xml or serves only as a PyPI distribution vehicle
  • Current compatibility with modern Python versions beyond what classifiers indicate
  • Whether active maintenance has resumed or if this remains a static snapshot

Package facts

License MIT (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — six
Maintenance abandoned — 2,144 days since the last release
First released
Downloads 205,805/month — #9,581 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: junit_xml_2-1.9-py2.py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: Freely DistributableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Software Development :: Build ToolsTopic :: Software Development :: Testing

Tags

junit xml test reportingpython test results xmlci cd test output formatjunit format generatortest report xml export
test-reportingci-cd-integrationabandoned

More Testing packages