Hi all, I've just uploaded a patch to #4460 which adds the ability to start individual tests or test cases from a test suite. Using this patch, ./manage.py test and ./runtests.py gain the ability to do the following:
# run all tests in the project ./manage.py test # run all tests in myapp ./manage.py test myapp # run all the tests in the Foo TestCase contained in myapp ./manage.oy test myapp.Foo # run the test_bar test in the Foo TestCase ./manage.py test myapp.Foo.test_bar Other than adding the ability to invoke individual tests, this will has no effect on most end users. However, it does require a significant change to the prototype of run_test, which will be backwards incompatible for anyone with a customized test runner. Previously, run_tests accepted a list of application modules; run_tests now takes a list of test labels, and it is the responsibility of the test runner to load the appropriate apps. Anyone with a customized test runner will need to incorporate module loading code as part of their test runner. This change won't affect most users, and it isn't difficult to make the change for those users that will be affected (sample logic for an implementation exists in the Django default test runner). Are there any objections to making this change? Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
