mirror of https://github.com/django/django.git
Documented how to see the full traceback of a test failure.
This commit is contained in:
parent
1f8dad6915
commit
21c82646fe
|
@ -276,14 +276,21 @@ cause any trouble::
|
|||
|
||||
$ ./runtests.py basic --reverse
|
||||
|
||||
Seeing the SQL queries run during a test
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
If you wish to examine the SQL being run in failing tests, you can turn on
|
||||
:ref:`SQL logging <django-db-logger>` using the ``--debug-sql`` option. If you
|
||||
combine this with ``--verbosity=2``, all SQL queries will be output::
|
||||
|
||||
$ ./runtests.py basic --debug-sql
|
||||
|
||||
By default tests are run in parallel with one process per core. You can adjust
|
||||
this behavior with the ``--parallel`` option::
|
||||
Seeing the full traceback of a test failure
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
By default tests are run in parallel with one process per core. When the tests
|
||||
are run in parallel, however, you'll only see a truncated traceback for any
|
||||
test failures. You can adjust this behavior with the ``--parallel`` option::
|
||||
|
||||
$ ./runtests.py basic --parallel=1
|
||||
|
||||
|
|
Loading…
Reference in New Issue