-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With unittest Enabled: No tests ran, please check the configuration settings for the tests. #2660
Comments
Can you verify this, @d3r3kk ? |
Yes, this does appear to be happening on Windows, I can sometimes get it to reproduce in Linux but it is far more infrequent (I had to remap keyboard controls to make re-running tests go fast enough to trip up the test runner). My current hypothesis is that this is related to the test failures here in #2692, I believe the re-registration of listeners needs to be revisited and corrected. Files affected: |
@d3r3kk so does this still need to be verified? |
JFYI still happens (and quite frequently) on VS Code 1.28.1, Python extension 2018.9, and Python 3.6.3 64bit virtualenv |
Thanks for the info @dmytrol, I will look into this further today. |
I used to have the run test "button" on the function. But now it dissapeared and it says "No tests discovered, please check...." It's for months that I'm waiting if it's a bug that will be fixed. I really can't understand what I did wrong. I can run test from command with this configuration:
So the test must be OK if I can run it from launch.json |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I just verified that this still happens in the latest version, VS Code 1.32.3, on Windows. Python extension 2019.2.5558. As above, it happens sporadically. I had to press "Run Test" many times and then it started happening, and then it stopped appearing on its own again as well. It's really flaky. |
This comment has been minimized.
This comment has been minimized.
@ToanQHo-KMS please 👍 the issue, otherwise your vote won't count for bugfix prioritization. |
I'm getting the same error on a Mac. Tests don't run. I only see it when the project folder is a children of my vscode project and I have a |
Found this issue after running into this w/ v1.40.0 and Python 2019.10.44104 on Windows 10. |
As this is a recognized bug, the most useful thing people can do at this point is to give 👍 to the original comment to help us prioritize our work. |
I also have this issue. But i found the reason is the module imported in .py file was not installed. After i install the module, it's resolved. But i am confused by the notice. |
Results from the spike:The root cause of the issue is hard to spot. The issue arises from the fact that we use socket communications to discover/run tests in the unittest framework. Suggestion: Use the stdout to scrape output rather than sockets, as is done with other frameworks. I've verified that results are correctly sent to the stdout, even in the cases where socket communication fails. |
Adding a "Me too" here. I've got tests that get run and fail, but vscode shows "No tests ran". Looking in the output for python tests show my failures. |
Same problem here. All the .py are pass but the last test remains with a question mark and then the warning pop ups |
Fixed by #16769. |
Environment data
I enabled Unit tests for my Python project using these Microsoft instructions: https://code.visualstudio.com/docs/python/unit-testing I'm using unittest and have explicitly disabled PyTest and Nose.
Actual behavior
Even though tests are passing, there is the Warning
"No tests ran, please check the configuration settings for the tests."
:Expected behavior
Tests to execute, no Warning, status to appear in the appropriate bar:
(I know it says Anaconda here, I was trying other stuff to debug this, but I'm using Vanilla python distro)
Steps to reproduce:
then "after a while" (sorry... try maybe 10 times?) of doing that, you will start to see the Warning appear.
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: