py.test

只运行某一个用例
pytest test_mod.py::test_func
或者
pytest test_mod.py::TestClass::test_method

原文地址:https://www.cnblogs.com/fupeng/p/7281759.html