1. 每个测试用例函数的名字需要以 test_ 开始,否则就出提示这个错误 例如: def test_hello(self): print("hello")
之前运行好好的脚本,突然报No tests were found,Empty test suite,详情错误信息如下所示: Launching pytest with arguments loanlaterOfflineExtend.py::LoanlaterOfflineExtend::test_ConfirmLoanOffline3 in D:\script\py_jjd\TestCase === test session starts === platform win32 -- Python 3.6.1, pytest-3....
Python语言测试过程中,运行测试用例后报错 " Empty suite " Python3.7 主要原因是你的测试用例里面的方法,应该以test开头且必须是小写