junit-xml-2
Fork of https://github.com/kyrus/python-junit-xml that has tarball published to pypi
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-2uv
uv add junit-xml-2poetry
poetry add junit-xml-2Installing 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
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
flake8-formatter-junit-xmlFormats flake8 linting output as JUnit XML,…
permissive · top 15,000 on PyPI
junit-xmlGenerates JUnit XML test result documents…
permissive · top 5,000 on PyPI
pylint-junitGenerates JUnit-formatted XML reports from…
permissive · top 15,000 on PyPI
junit2htmlConverts JUnit or XUnit XML test result files…
permissive · top 5,000 on PyPI
xmlrunnerA unittest test runner that exports test…
copyleft · top 15,000 on PyPI
unittest-xml-reportingA unittest test runner that exports test…
permissive · top 5,000 on PyPI
secscanner2junitConverts GitLab security scanner output (SAST,…
copyleft · top 15,000 on PyPI
flake8-junit-reportConverts flake8 linting output to JUnit XML…
permissive · top 15,000 on PyPI
junitparserParse, create, and manipulate JUnit/xUnit test…
permissive · top 5,000 on PyPI
flake8-junit-report-basicConverts flake8 linting output to JUnit XML…
permissive · top 5,000 on PyPI