mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Reverted "Fixed #33213 -- Doc'd testing code coverage in parallel and used it."
This reverts commit 69352d85fa
.
Test coverage for async methods was no longer calculated with this
change.
This commit is contained in:
parent
8a844e761d
commit
78da5ca0c1
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,6 +13,6 @@ docs/_build/
|
|||||||
docs/locale/
|
docs/locale/
|
||||||
node_modules/
|
node_modules/
|
||||||
tests/coverage_html/
|
tests/coverage_html/
|
||||||
tests/.coverage*
|
tests/.coverage
|
||||||
build/
|
build/
|
||||||
tests/report/
|
tests/report/
|
||||||
|
@ -357,19 +357,14 @@ Contributors are encouraged to run coverage on the test suite to identify areas
|
|||||||
that need additional tests. The coverage tool installation and use is described
|
that need additional tests. The coverage tool installation and use is described
|
||||||
in :ref:`testing code coverage<topics-testing-code-coverage>`.
|
in :ref:`testing code coverage<topics-testing-code-coverage>`.
|
||||||
|
|
||||||
To run coverage on the Django test suite using the standard test settings:
|
Coverage should be run in a single process to obtain accurate statistics. To
|
||||||
|
run coverage on the Django test suite using the standard test settings:
|
||||||
|
|
||||||
.. console::
|
.. console::
|
||||||
|
|
||||||
$ coverage run ./runtests.py --settings=test_sqlite
|
$ coverage run ./runtests.py --settings=test_sqlite --parallel=1
|
||||||
|
|
||||||
After running coverage, combine all coverage statistics by running:
|
After running coverage, generate the html report by running:
|
||||||
|
|
||||||
.. console::
|
|
||||||
|
|
||||||
$ coverage combine
|
|
||||||
|
|
||||||
After that generate the html report by running:
|
|
||||||
|
|
||||||
.. console::
|
.. console::
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
[run]
|
[run]
|
||||||
branch = True
|
branch = True
|
||||||
concurrency = multiprocessing
|
|
||||||
data_file = .coverages/.coverage
|
|
||||||
omit =
|
omit =
|
||||||
*/django/utils/autoreload.py
|
*/django/utils/autoreload.py
|
||||||
source = django
|
source = django
|
||||||
|
Loading…
Reference in New Issue
Block a user