@@ -31,7 +31,7 @@ You can then restrict a test run to only run tests marked with ``webtest``::
31
31
32
32
$ pytest -v -m webtest
33
33
======= test session starts ========
34
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
34
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
35
35
cachedir: .cache
36
36
rootdir: $REGENDOC_TMPDIR, inifile:
37
37
collecting ... collected 4 items
@@ -45,7 +45,7 @@ Or the inverse, running all tests except the webtest ones::
45
45
46
46
$ pytest -v -m "not webtest"
47
47
======= test session starts ========
48
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
48
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
49
49
cachedir: .cache
50
50
rootdir: $REGENDOC_TMPDIR, inifile:
51
51
collecting ... collected 4 items
@@ -66,7 +66,7 @@ tests based on their module, class, method, or function name::
66
66
67
67
$ pytest -v test_server.py::TestClass::test_method
68
68
======= test session starts ========
69
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
69
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
70
70
cachedir: .cache
71
71
rootdir: $REGENDOC_TMPDIR, inifile:
72
72
collecting ... collected 5 items
@@ -79,7 +79,7 @@ You can also select on the class::
79
79
80
80
$ pytest -v test_server.py::TestClass
81
81
======= test session starts ========
82
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
82
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
83
83
cachedir: .cache
84
84
rootdir: $REGENDOC_TMPDIR, inifile:
85
85
collecting ... collected 4 items
@@ -92,7 +92,7 @@ Or select multiple nodes::
92
92
93
93
$ pytest -v test_server.py::TestClass test_server.py::test_send_http
94
94
======= test session starts ========
95
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
95
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
96
96
cachedir: .cache
97
97
rootdir: $REGENDOC_TMPDIR, inifile:
98
98
collecting ... collected 8 items
@@ -130,7 +130,7 @@ select tests based on their names::
130
130
131
131
$ pytest -v -k http # running with the above defined example module
132
132
======= test session starts ========
133
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
133
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
134
134
cachedir: .cache
135
135
rootdir: $REGENDOC_TMPDIR, inifile:
136
136
collecting ... collected 4 items
@@ -144,7 +144,7 @@ And you can also run all tests except the ones that match the keyword::
144
144
145
145
$ pytest -k "not send_http" -v
146
146
======= test session starts ========
147
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
147
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
148
148
cachedir: .cache
149
149
rootdir: $REGENDOC_TMPDIR, inifile:
150
150
collecting ... collected 4 items
@@ -160,7 +160,7 @@ Or to select "http" and "quick" tests::
160
160
161
161
$ pytest -k "http or quick" -v
162
162
======= test session starts ========
163
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
163
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
164
164
cachedir: .cache
165
165
rootdir: $REGENDOC_TMPDIR, inifile:
166
166
collecting ... collected 4 items
@@ -352,7 +352,7 @@ the test needs::
352
352
353
353
$ pytest -E stage2
354
354
======= test session starts ========
355
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1
355
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1
356
356
rootdir: $REGENDOC_TMPDIR, inifile:
357
357
collected 1 items
358
358
@@ -364,7 +364,7 @@ and here is one that specifies exactly the environment needed::
364
364
365
365
$ pytest -E stage1
366
366
======= test session starts ========
367
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1
367
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1
368
368
rootdir: $REGENDOC_TMPDIR, inifile:
369
369
collected 1 items
370
370
@@ -485,7 +485,7 @@ then you will see two test skipped and two executed tests as expected::
485
485
486
486
$ pytest -rs # this option reports skip reasons
487
487
======= test session starts ========
488
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1
488
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1
489
489
rootdir: $REGENDOC_TMPDIR, inifile:
490
490
collected 4 items
491
491
@@ -499,7 +499,7 @@ Note that if you specify a platform via the marker-command line option like this
499
499
500
500
$ pytest -m linux2
501
501
======= test session starts ========
502
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1
502
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1
503
503
rootdir: $REGENDOC_TMPDIR, inifile:
504
504
collected 4 items
505
505
@@ -551,7 +551,7 @@ We can now use the ``-m option`` to select one set::
551
551
552
552
$ pytest -m interface --tb=short
553
553
======= test session starts ========
554
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1
554
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1
555
555
rootdir: $REGENDOC_TMPDIR, inifile:
556
556
collected 4 items
557
557
@@ -573,7 +573,7 @@ or to select both "event" and "interface" tests::
573
573
574
574
$ pytest -m "interface or event" --tb=short
575
575
======= test session starts ========
576
- platform linux -- Python 3.5.2, pytest-3.0.1 , py-1.4.31, pluggy-0.3.1
576
+ platform linux -- Python 3.5.2, pytest-3.0.2 , py-1.4.31, pluggy-0.3.1
577
577
rootdir: $REGENDOC_TMPDIR, inifile:
578
578
collected 4 items
579
579
0 commit comments