You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you ever wanted to easily run one of your tests before any others run? Or run some tests last? Or run this one test before this one other test? Or make sure that this group of tests runs after this other group of tests?
9
+
10
+
Now you can.
11
+
12
+
Install with:
13
+
14
+
pip install pytest-ordering
15
+
16
+
This defines some pytest markers that you can use in your code.
17
+
18
+
For example, this:
19
+
20
+
import pytest
21
+
22
+
@pytest.mark.order2
23
+
def test_foo():
24
+
assert True
25
+
26
+
@pytest.mark.order1
27
+
def test_bar():
28
+
assert True
29
+
30
+
Yields this output:
31
+
32
+
$ py.test test_foo.py -vv
33
+
============================= test session starts ==============================
0 commit comments