python自动化返回:no tests were fount Empty test suite

Posted 智、心

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python自动化返回:no tests were fount Empty test suite相关的知识,希望对你有一定的参考价值。

在运行PyCharm程序时,报错提示:Empty test suite 找不到测试用例

打开另外一个之前写的同样的脚本就运行成功,把成功的脚本贴到这个编辑框内就失败,所以怀疑是这个编辑框的设置问题,于是开始百度。后来在网上看到了有用的解决方案,如下:

删除Python test里面,需要测试的脚本,然后保存设置,重新运行脚本即可。

奇怪的是,这样操作以后确实是成功了,脚本正常运行,但是当我再次添加一个Python test的时候,还是能够运行成功。

以上是关于python自动化返回:no tests were fount Empty test suite的主要内容,如果未能解决你的问题,请参考以下文章

GoLand No Tests Were Run : 不能使用 fmt.Printf() <BUG;

报错requests.exceptions.InvalidSchema: No connection adapters were found for

A query was run and no Result Maps were found for the Mapped Statement....

ExecutorException: A query was run and no Result Maps were found for the Mapped Statement ‘com.win.m

mybatis报错:A query was run and no Result Maps were found for the Mapped StatementProperty [login_ip(代

记录 Poetry 发布包到 pypi 遇到的坑:No suitable keyring backends were found