Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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
cpython
Commits
27ef61ca
Kaydet (Commit)
27ef61ca
authored
Mar 25, 2007
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change the docs to no longer claim that unittest is preferred over doctest for
regression tests.
üst
3d52e5f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
libtest.tex
Doc/lib/libtest.tex
+7
-7
No files found.
Doc/lib/libtest.tex
Dosyayı görüntüle @
27ef61ca
...
@@ -14,11 +14,11 @@ your tests while \module{test.regrtest} drives the testing suite.
...
@@ -14,11 +14,11 @@ your tests while \module{test.regrtest} drives the testing suite.
Each module in the
\module
{
test
}
package whose name starts with
Each module in the
\module
{
test
}
package whose name starts with
\samp
{
test
_}
is a testing suite for a specific module or feature.
\samp
{
test
_}
is a testing suite for a specific module or feature.
All new tests should be written using the
\refmodule
{
unittest
}
module;
All new tests should be written using the
\refmodule
{
unittest
}
or
using
\refmodule
{
unittest
}
is not required but makes the tests mo
re
\refmodule
{
doctest
}
module. Some older tests a
re
flexible and maintenance of the tests easier. Some older tests are
written using a ``traditional'' testing style that compares output
written to use
\refmodule
{
doctest
}
and a ``traditional'' testing
printed to
\code
{
sys.stdout
}
; this style of test is considered
style; these styles of tests will not be cover
ed.
deprecat
ed.
\begin{seealso}
\begin{seealso}
\seemodule
{
unittest
}{
Writing PyUnit regression tests.
}
\seemodule
{
unittest
}{
Writing PyUnit regression tests.
}
...
@@ -29,8 +29,8 @@ style; these styles of tests will not be covered.
...
@@ -29,8 +29,8 @@ style; these styles of tests will not be covered.
\subsection
{
Writing Unit Tests for the
\module
{
test
}
package
%
\subsection
{
Writing Unit Tests for the
\module
{
test
}
package
%
\label
{
writing-tests
}}
\label
{
writing-tests
}}
It is preferred that tests
for the
\module
{
test
}
package use th
e
It is preferred that tests
that use the
\refmodule
{
unittest
}
modul
e
\refmodule
{
unittest
}
module and
follow a few guidelines.
follow a few guidelines.
One is to name the test module by starting it with
\samp
{
test
_}
and end it with
One is to name the test module by starting it with
\samp
{
test
_}
and end it with
the name of the module being tested.
the name of the module being tested.
The test methods in the test module should start with
\samp
{
test
_}
and end with
The test methods in the test module should start with
\samp
{
test
_}
and end with
...
...
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