pytest运行方式
时间: 2023-10-12 07:03:01 浏览: 100
pytest可以通过多种方式来运行测试。首先,可以在命令行中直接输入"pytest"来运行。这将检测当前目录下的测试用例并执行。你也可以在pytest后面加上参数来进行更多的设置。例如,你可以使用pytest -s来输出打印信息,或者使用pytest -v来输出详细的运行信息。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [pytest三种运行方式](https://blog.csdn.net/weixin_45651841/article/details/114161823)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [pytest的三种运行方式](https://blog.csdn.net/weixin_47547541/article/details/126620327)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文