On Sun, Mar 14, 2010 at 12:14 PM, ben <benreyn...@gmail.com> wrote: > I haven't been able to work out how to run a single regression test > from the test suite. > > I would have thought that > > ./runtests.py --settings=test_sqlite > regressiontests.generic_relations_regress.tests.GenericRelationTests > > might work. But it expects tests of the form app.TestCase. Since > these tests aren't in an app I'm not sure how to run them > individually. >
They are apps, just drop the regressiontests or modeltests from the spec. Also drop tests. This works, for example: generic_relations_regress to run all the tests found under regressiontests/generic_relations_regress. Or: generic_relations_regress.GenericRelationTests to run the entire GenericRelationTests TestCase, but no other tests that may be found under regressiontests/generic_relations_regress. Or: generic_relations_regress.GenericRelationTests.test_textlink_delete to run just the test_textlink_delete test method in the GenericRelationTests TestCase. Karen -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.