Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
b6203144
Kaydet (Commit)
b6203144
authored
Ara 16, 2013
tarafından
Tianyi Wang
Kaydeden (comit)
Baptiste Mispelon
Ara 18, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #21625 -- incorrect documentation for DiscoverRunner.build_suite
üst
9bfdad54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
21 deletions
+14
-21
advanced.txt
docs/topics/testing/advanced.txt
+14
-21
No files found.
docs/topics/testing/advanced.txt
Dosyayı görüntüle @
b6203144
...
@@ -377,21 +377,9 @@ Methods
...
@@ -377,21 +377,9 @@ Methods
Run the test suite.
Run the test suite.
``test_labels`` is a list of strings describing the tests to be run. A test
``test_labels`` allows you to specify which tests to run and supports
label can take one of four forms:
several formats (see :meth:`DiscoverRunner.build_suite` for a list of
supported formats).
* ``path.to.test_module.TestCase.test_method`` -- Run a single test method
in a test case.
* ``path.to.test_module.TestCase`` -- Run all the test methods in a test
case.
* ``path.to.module`` -- Search for and run all tests in the named Python
package or module.
* ``path/to/directory`` -- Search for and run all tests below the named
directory.
If ``test_labels`` has a value of ``None``, the test runner will search for
tests in all files below the current directory whose names match its
``pattern`` (see above).
``extra_tests`` is a list of extra ``TestCase`` instances to add to the
``extra_tests`` is a list of extra ``TestCase`` instances to add to the
suite that is executed by the test runner. These extra tests are run
suite that is executed by the test runner. These extra tests are run
...
@@ -410,15 +398,20 @@ Methods
...
@@ -410,15 +398,20 @@ Methods
Constructs a test suite that matches the test labels provided.
Constructs a test suite that matches the test labels provided.
``test_labels`` is a list of strings describing the tests to be run. A test
``test_labels`` is a list of strings describing the tests to be run. A test
label can take one of
three
forms:
label can take one of
four
forms:
* ``app.TestCase.test_method`` -- Run a single test method in a test
* ``path.to.test_module.TestCase.test_method`` -- Run a single test method
in a test case.
* ``path.to.test_module.TestCase`` -- Run all the test methods in a test
case.
case.
* ``app.TestCase`` -- Run all the test methods in a test case.
* ``path.to.module`` -- Search for and run all tests in the named Python
* ``app`` -- Search for and run all tests in the named application.
package or module.
* ``path/to/directory`` -- Search for and run all tests below the named
directory.
If ``test_labels`` has a value of ``None``, the test runner should run
If ``test_labels`` has a value of ``None``, the test runner will search for
search for tests in all the applications in :setting:`INSTALLED_APPS`.
tests in all files below the current directory whose names match its
``pattern`` (see above).
``extra_tests`` is a list of extra ``TestCase`` instances to add to the
``extra_tests`` is a list of extra ``TestCase`` instances to add to the
suite that is executed by the test runner. These extra tests are run
suite that is executed by the test runner. These extra tests are run
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment