-
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
unittest runner thinks failing test is not run #17561
Comments
Our test adapter for We are in the process of re-writing the test adapter. With the redesign we will take unittest sub tests into consideration. |
Related #17242 |
@programmerjake I made a PR (#17578) that addresses this issue in some form: But it won't make it into up coming release. I will share the build from this PR when it is done here so you can try it out. For the code that yo shared the result should look like this: |
Wow, I was only expecting it to update the UI on a failed run, but if it's able to delve into- and report on- each subtest that would be great. |
@coppinri There are limitations to this. We can only detect sub-test at run time, if you want to give this a try, you will need insiders version of VS Code (v 1.61.0-insider) and this build of python extensions https://github.com/microsoft/vscode-python/suites/3925208299/artifacts/98213954 |
Environment data
Ubuntu 20.04.3 LTS
Linux x86_64 5.4.0-88-generic
python.languageServer
setting: pylanceExpected behaviour
Reports failed test
Actual behaviour
Reports passing test/thinks test is still not run
Steps to reproduce:
Run below test using vscode:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output for
Test Output
in theTerminal
panelOutput for
Python Test Log
in theOutput
panelThe text was updated successfully, but these errors were encountered: