pytest --allure-feature '模块名' 提示no tests


在终端里 怎么搞 都提示 no tests。 这个py文件实际上是能运行的,也是能生成报告的。但是 只要使用 pytest 文件名 --allure-feature ‘模块名’ 就提示 no tests 不运行。

把终端里的命令的单引号换成双引号,就可以了。 希望其他同学遇到这个问题的时候,也注意一下。