-
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
Test dicovery doesn't provide feedback on failure #16786
Comments
We have major improvements coming to testing UI. See here #16769 this is addressed there. |
Sorry. I misunderstood. The changes in #16769 provides a way for us to report test discovery errors in a better way. We need to hook this information we get from python to the node where the error occurs in the UI. |
To confirm, does this mean the Test UI will not clear out when test discovery fails from, e.g., a syntax error? |
Does that mean previously discovered tests will not still be displayed? |
Depends on the test framework, and type of error. On unittest, the test in that particular file with syntax error will be skipped. In pytest, currently syntax errors means it won't be able to see any of the other tests. We have plans on making that part better when we update our integration with pytest. |
Yeah this is a huge bummer w/ pytest.
Great! Looking forward to it. |
Hello! We have just finished our testing rewrite and are beginning the roll out to users. I have tested this issue with the re-write and I am no longer reproducing the bug! If you would like to try it yourself, you need to add this setting to your users |
Hi @eleanorjboyd, is there something else we need to do for this setting to take effect? |
You can confirm you have the rewrite enabled by setting |
By the way, I selected to install the pre-release version of the Python extension. I'm not sure whether that's needed to test the |
Hi! Could you send me your logs? I am wondering if there is an error there about UUIDs and if so would be connected to this: #21599 |
I find quite often my tests "disappear" from the test window, or discovery appears to do nothing. This is almost always because I've introduced a syntax error in the package I'm testing which results in an import failure. The reason is clear in the Python Test Log, i.e. below I forgot to install a dependency culminating in discovery failing with exit code 2. If this should happen at the very least the test sidebar should provide some indication that test discovery exited abnormally - perhaps with a highlight on the "Show Test Output" icon since clicking on that is the first step in resolving the issue.
The text was updated successfully, but these errors were encountered: