summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2011-06-10 08:26:05 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2011-06-10 08:26:05 +0000
commit046ffa483ed63faae7b31e7e2cf618f88a3312ba (patch)
treed90ffd710a4bbcd5db38469eb144efcb1c85e178 /docs/topics
parentb56ef75088e17fa3555766e92a6747411ccd738c (diff)
Fixed #16185, #15675 -- Added the ability for test runners to define custom options, and to specify a custom test runner at the command line. Thanks to Dmitry Jemerov and Mikołaj Siedlarek for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/testing.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt
index a21ad6a77e..6595c51957 100644
--- a/docs/topics/testing.txt
+++ b/docs/topics/testing.txt
@@ -1744,6 +1744,29 @@ set up, execute and tear down the test suite.
write your own test runner, ensure accept and handle the ``**kwargs``
parameter.
+ .. versionadded:: 1.4
+
+ Your test runner may also define additional command-line options.
+ If you add an ``option_list`` attribute to a subclassed test runner,
+ those options will be added to the list of command-line options that
+ the :djadmin:`test` command can use.
+
+
+Attributes
+~~~~~~~~~~
+
+
+.. attribute:: DjangoTestSuiteRunner.option_list
+
+ .. versionadded:: 1.4
+
+ This is the tuple of ``optparse`` options which will be fed into the
+ management command's ``OptionParser`` for parsing arguments. See the
+ documentation for Python's ``optparse`` module for more details.
+
+Methods
+~~~~~~~
+
.. method:: DjangoTestSuiteRunner.run_tests(test_labels, extra_tests=None, **kwargs)
Run the test suite.