From e2de49ec2ea5827b36d0d4ec4f90b4ee0a003e93 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Sat, 25 May 2019 20:55:30 +0200 Subject: Fixed #28520 -- Added --start-at/--start-after options to runtests.py. --- .../internals/contributing/writing-code/unit-tests.txt | 18 ++++++++++++++++++ docs/releases/3.0.txt | 3 +++ 2 files changed, 21 insertions(+) (limited to 'docs') diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index 6d9074f2d1..febfa3546e 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -213,6 +213,24 @@ Going beyond that, you can specify an individual test method like this: $ ./runtests.py --settings=path.to.settings i18n.tests.TranslationTests.test_lazy_objects +You can run tests starting at a specified top-level module with ``--start-at`` +option. For example: + +.. console:: + + $ ./runtests.py --start-at=wsgi + +You can also run tests starting after a specified top-level module with +``--start-after`` option. For example: + +.. console:: + + $ ./runtests.py --start-after=wsgi + +Note that the ``--reverse`` option doesn't impact on ``--start-at`` or +``--start-after`` options. Moreover these options cannot be used with test +labels. + Running the Selenium tests -------------------------- diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt index 25d602559e..14156af459 100644 --- a/docs/releases/3.0.txt +++ b/docs/releases/3.0.txt @@ -267,6 +267,9 @@ Tests * Django test runner now supports headless mode for selenium tests on supported browsers. Add the ``--headless`` option to enable this mode. +* Django test runner now supports ``--start-at`` and ``--start-after`` options + to run tests starting from a specific top-level module. + URLs ~~~~ -- cgit v1.3