Skip to main content

XML Test Runner for unittest module (Python 2.7+)

Project description

This is a test runner for the unittest module, Python’s version of the xUnit framework. The test runner captures the test results in a XML file that is compatible with the XML output of JUnit. Various tools, like continuous integration servers can parse this output.

Sample usage:

import unittest

from xmlrunner import XMLTestRunner

loader = unittest.TestLoader()
tests = loader.discover()
runner = XMLTestRunner()
runner.run(tests)

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page