Python-Test那些事
https://blog.csdn.net/chuntingting/article/details/127192385
指定要测试的文件夹或文件,直接将路径写为第二个参数
文件夹
| 1 | pytest .\test\test_get_baidu_newsL\ | 
文件
| 1 | pytest test_1.py | 
函数-k
| 1 | pytest -k test_add_a_todo_item | 
并行测试
| 1 | pytest --numprocesses 2 | 
给测试传参:
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Min的博客!
 评论
