Skip to content

Commit 36abe84

Browse files
committed
[docs] add table nose x pytest naming comparison
1 parent ca4a7a0 commit 36abe84

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

doc/en/how-to/nose.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,34 @@ Unsupported idioms / known issues
6868
fundamentally incompatible with pytest because they don't support fixtures
6969
properly since collection and test execution are separated.
7070

71+
Here is a table comparing the default supported naming conventions for both
72+
nose and pytest.
73+
74+
========================== ======== ======
75+
Convention nose pytest
76+
========================== ======== ======
77+
Ⓜ test*.py ✅
78+
Ⓜ test_*.py ✅ ✅
79+
\*_test.py ✅
80+
\*_tests.py
81+
\*\(unittest.TestCase\) ✅ ✅
82+
test_\* ✅ ✅
83+
Ⓒ Test\*
84+
test_\*
85+
test_\*
86+
========================== ======== ======
87+
88+
Symbols are described below
89+
90+
======= =========
91+
Legend
92+
======= =========
93+
Ⓜ module
94+
Ⓒ Class
95+
ⓜ method
96+
ⓕ function
97+
======= =========
98+
7199
Migrating from nose to pytest
72100
------------------------------
73101

0 commit comments

Comments
 (0)