File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -95,11 +95,13 @@ Running Unit Tests
95
95
------------------
96
96
Unit tests can be run like so::
97
97
98
- nosetests -w tests/unit/
98
+ python -m pytest --import-mode append tests/unit -k 'not (test_connection_initialization or test_cloud)'
99
+ EVENT_LOOP_MANAGER=gevent python -m pytest --import-mode append tests/unit/io/test_geventreactor.py
100
+ EVENT_LOOP_MANAGER=eventlet python -m pytest --import-mode append tests/unit/io/test_eventletreactor.py
99
101
100
102
You can run a specific test method like so::
101
103
102
- nosetests -w tests/unit/test_connection.py:ConnectionTest. test_bad_protocol_version
104
+ python -m pytest tests/unit/test_connection.py:: ConnectionTest:: test_bad_protocol_version
103
105
104
106
Running Integration Tests
105
107
-------------------------
@@ -128,11 +130,11 @@ Seeing Test Logs in Real Time
128
130
-----------------------------
129
131
Sometimes it's useful to output logs for the tests as they run::
130
132
131
- nosetests -w tests/unit/ --nocapture --nologcapture
133
+ python -m pytest -s tests/unit/
132
134
133
135
Use tee to capture logs and see them on your terminal::
134
136
135
- nosetests -w tests/unit/ --nocapture --nologcapture 2>&1 | tee test.log
137
+ python -m pytest -s tests/unit/ 2>&1 | tee test.log
136
138
137
139
Testing Multiple Python Versions
138
140
--------------------------------
You can’t perform that action at this time.
0 commit comments