Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fix for the issue #19 #20

merged 1 commit into from

2 participants


Fixes ordering issue (#19) by using Django function for ordering the suite before running it.

@danielfm danielfm merged commit 531f268 into xmlrunner:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 9, 2012
  1. Added test ordering to the django test runner, so it behaves the same…

    lukasz authored
    … way as the original.
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/xmlrunner/extra/
7 src/xmlrunner/extra/
@@ -16,7 +16,10 @@
from django.db.models import get_app, get_apps
from django.test.utils import setup_test_environment, teardown_test_environment
-from django.test.simple import build_suite, build_test, DjangoTestSuiteRunner
+from django.test.simple import (
+ build_suite, build_test, DjangoTestSuiteRunner, reorder_suite
+from django.test.testcases import TestCase
import xmlrunner
class XMLTestRunner(DjangoTestSuiteRunner):
@@ -63,6 +66,8 @@ def run_tests(self, test_labels, verbosity=1, interactive=True, extra_tests=[]):
for test in extra_tests:
+ suite = reorder_suite(suite, (TestCase,))
old_config = self.setup_databases()
result = xmlrunner.XMLTestRunner(
Something went wrong with that request. Please try again.