@@ -163,41 +163,41 @@ install command:
163
163
164
164
You can run all unit tests with:
165
165
166
- nosetests
166
+ pytest
167
167
168
168
#### Running all tests in a file
169
169
170
170
To run all tests under a particular test file you can use the following
171
171
command:
172
172
173
- nosetests tests.<file_name_without_extension>
173
+ pytest tests.<file_name_without_extension>
174
174
175
- For example, to run all tests under ` test_event ` , the command would be:
175
+ For example, to run all tests under ` test_event_builder ` , the command would be:
176
176
177
- nosetests tests.test_event
177
+ pytest tests/test_event_builder.py
178
178
179
179
#### Running all tests under a class
180
180
181
181
To run all tests under a particular class of tests you can use the
182
182
following command:
183
183
184
- nosetests tests.<file_name_without_extension> :ClassName
184
+ pytest tests/<file_name_with_extension>: :ClassName
185
185
186
- For example, to run all tests under ` test_event .EventTest` , the command
186
+ For example, to run all tests under ` test_event_builder .EventTest` , the command
187
187
would be:
188
188
189
- nosetests tests.test_event :EventTest
189
+ pytest tests/test_event_builder.py: :EventTest
190
190
191
191
#### Running a single test
192
192
193
193
To run a single test you can use the following command:
194
194
195
- nosetests tests.<file_name_without_extension>: ClassName. test_name
195
+ pytest tests/<file_name_with_extension>:: ClassName:: test_name
196
196
197
- For example, to run ` test_event .EventTest.test_dispatch ` , the command
197
+ For example, to run ` test_event_builder .EventTest.test_init ` , the command
198
198
would be:
199
199
200
- nosetests tests.test_event: EventTest.test_dispatch
200
+ pytest tests/test_event_builder.py:: EventTest::test_init
201
201
202
202
### Contributing
203
203
0 commit comments