py.test runs tests but shows "No tests were found"
已回答
It seems like py.test is running (and showing failures in the output window) but shows "No tests were found" and doesn't list any tests as being run. I'm on:
IntelliJ IDEA 2017.1.4
Build #IU-171.4694.23, built on June 6, 2017
Licensed to --
Subscription is active until August 8, 2017
JRE: 1.8.0_112-release-736-b21 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.11.5
Python plugin:
2017.1.171.4694.26
请先登录再写评论。
Hi Jeffreyrand! I'm sorry for the inconvenience! The problem is known: PY-24606. Please update to IDEA 2017.2 EAP or downgrade Python plugin to the previous version manually: https://plugins.jetbrains.com/plugin/631-python
I've upgraded to the new released 2017.2 and still the same problem.
See also https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000369850-IntelliJ-IDEA-pytest-No-tests-were-found?page=1#community_comment_115000439984
Hi Tobias! Would you mind creating a ticket in our bug tracker? I think your problem has a different source and it would be easy to investigate it there.
Do you use PyCharm or IDEA and Python plugin?
Do you have a Working Directory option set in default pytest Run Configuration?