﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23742	Option to run Django tests in reverse	Wojtek Ruszczewski	nobody	"The idea is to add a `--reverse` option to be able to more thoroughly check for test side-effects.

Django test suite currently has some tests that have side-effects causing rare failures in tests usually run before them (or successes in tests usually run after them?). Debugging such issues is somewhat cumbersome as the exact test order depends on the environment.

One example is `assertNumQueries` dependence on cache priming (to be handled in another ticket) causing `test_group_permission_performance` to fail (for instance just when the full suite is run with a database on a ramdisk and memcached enabled). With the [https://github.com/wrwrwr/django/compare/feature/reverse-test-order branch] you may try:
{{{#!python
./runtests.py admin_views.tests.GroupAdminTest --reverse
}}}
or
{{{#!python
./runtests.py --pair admin_views.tests.GroupAdminTest.test_group_permission_performance --reverse
}}}
to see a failure when run after `fixtures` tests."	New feature	closed	Testing framework	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
