Skip to content

Commit

Permalink
Replaced "Django test runner" with DiscoverRunner in release notes.
Browse files Browse the repository at this point in the history
Removed mention of options supported only by runtests.py.
  • Loading branch information
timgraham authored Feb 5, 2024
1 parent 02a600f commit d70b79c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 21 deletions.
10 changes: 2 additions & 8 deletions docs/releases/3.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,8 @@ Tests
references, and entity references that refer to the same character as
equivalent.

* 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.

* Django test runner now supports a ``--pdb`` option to spawn a debugger at
each error or failure.
* :class:`~django.test.runner.DiscoverRunner` can now spawn a debugger at each
error or failure using the :option:`test --pdb` option.

.. _backwards-incompatible-3.0:

Expand Down
4 changes: 2 additions & 2 deletions docs/releases/3.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ Tests
* The new :setting:`MIGRATE <TEST_MIGRATE>` test database setting allows
disabling of migrations during a test database creation.

* Django test runner now supports a :option:`test --buffer` option to discard
output for passing tests.
* :class:`~django.test.runner.DiscoverRunner` can now discard output for
passing tests using the :option:`test --buffer` option.

* :class:`~django.test.runner.DiscoverRunner` now skips running the system
checks on databases not :ref:`referenced by tests<testing-multi-db>`.
Expand Down
7 changes: 3 additions & 4 deletions docs/releases/4.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -367,17 +367,16 @@ Tests
serialized to allow usage of the
:ref:`serialized_rollback <test-case-serialized-rollback>` feature.

* Django test runner now supports a :option:`--buffer <test --buffer>` option
with parallel tests.
* The :option:`test --buffer` option now supports parallel tests.

* The new ``logger`` argument to :class:`~django.test.runner.DiscoverRunner`
allows a Python :py:ref:`logger <logger>` to be used for logging.

* The new :meth:`.DiscoverRunner.log` method provides a way to log messages
that uses the ``DiscoverRunner.logger``, or prints to the console if not set.

* Django test runner now supports a :option:`--shuffle <test --shuffle>` option
to execute tests in a random order.
* :class:`~django.test.runner.DiscoverRunner` can now execute tests in a random
order using the :option:`test --shuffle` option.

* The :option:`test --parallel` option now supports the value ``auto`` to run
one test process for each processor core.
Expand Down
5 changes: 3 additions & 2 deletions docs/releases/4.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,9 @@ Miscellaneous
on the :class:`~django.db.models.Model` instance to which they belong. *This
change was reverted in Django 4.1.2.*

* The Django test runner now returns a non-zero error code for unexpected
successes from tests marked with :py:func:`unittest.expectedFailure`.
* :class:`~django.test.runner.DiscoverRunner` now returns a non-zero error code
for unexpected successes from tests marked with
:py:func:`unittest.expectedFailure`.

* :class:`~django.middleware.csrf.CsrfViewMiddleware` no longer masks the CSRF
cookie like it does the CSRF token in the DOM.
Expand Down
5 changes: 3 additions & 2 deletions docs/releases/5.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,9 @@ Tests

* :class:`~django.test.AsyncClient` now supports the ``follow`` parameter.

* The new :option:`test --durations` option allows showing the duration of the
slowest tests on Python 3.12+.
* :class:`~django.test.runner.DiscoverRunner` now allows showing the duration
of the slowest tests using the :option:`test --durations` option (available
on Python 3.12+).

Validators
~~~~~~~~~~
Expand Down
3 changes: 0 additions & 3 deletions docs/releases/5.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,6 @@ Tests
:meth:`~django.test.SimpleTestCase.assertInHTML` assertions now add haystacks
to assertion error messages.

* The Django test runner now supports a ``--screenshots`` option to save
screenshots for Selenium tests.

* The :class:`~django.test.RequestFactory`,
:class:`~django.test.AsyncRequestFactory`, :class:`~django.test.Client`, and
:class:`~django.test.AsyncClient` classes now support the ``query_params``
Expand Down

0 comments on commit d70b79c

Please sign in to comment.