diff -r 0b171fe8b1bc docs/ref/settings.txt
a
|
b
|
|
1409 | 1409 | TEST_RUNNER |
1410 | 1410 | ----------- |
1411 | 1411 | |
1412 | | Default: ``'django.test.simple.run_tests'`` |
| 1412 | Default: ``'django.test.simple.DjangoTestSuiteRunner'``. |
1413 | 1413 | |
1414 | 1414 | The name of the method to use for starting the test suite. See |
1415 | 1415 | :ref:`topics-testing`. |
1416 | 1416 | |
| 1417 | .. versionchanged:: 1.2 |
| 1418 | Prior to 1.2, test runners were a single function, not a class. |
| 1419 | |
1417 | 1420 | .. _Testing Django Applications: ../testing/ |
1418 | 1421 | |
1419 | 1422 | .. setting:: THOUSAND_SEPARATOR |
diff -r 0b171fe8b1bc docs/topics/testing.txt
a
|
b
|
|
1247 | 1247 | |
1248 | 1248 | #. Performing global post-test teardown. |
1249 | 1249 | |
1250 | | If you define your own test runner method and point :setting:`TEST_RUNNER` at |
1251 | | that method, Django will execute your test runner whenever you run |
| 1250 | If you define your own test runner class and point :setting:`TEST_RUNNER` at |
| 1251 | that class, Django will execute your test runner whenever you run |
1252 | 1252 | ``./manage.py test``. In this way, it is possible to use any test framework |
1253 | 1253 | that can be executed from Python code, or to modify the Django test execution |
1254 | 1254 | process to satisfy whatever testing requirements you may have. |
… |
… |
|
1284 | 1284 | If ``failfast`` is ``True``, the test suite will stop running after the |
1285 | 1285 | first test failure is detected. |
1286 | 1286 | |
1287 | | .. method:: DjangoTestSuiteRunner.run_tests(test_labels, extra_tests=[]) |
| 1287 | .. method:: DjangoTestSuiteRunner.run_tests(test_labels, extra_tests=None) |
1288 | 1288 | |
1289 | 1289 | Run the test suite. |
1290 | 1290 | |
… |
… |
|
1309 | 1309 | |
1310 | 1310 | Sets up the test environment ready for testing. |
1311 | 1311 | |
1312 | | .. method:: DjangoTestSuiteRunner.build_suite(test_labels, extra_tests=[]) |
| 1312 | .. method:: DjangoTestSuiteRunner.build_suite(test_labels, extra_tests=None) |
1313 | 1313 | |
1314 | 1314 | Constructs a test suite that matches the test labels provided. |
1315 | 1315 | |