-
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 results not updated if test is run via codelens #6787
Comments
Thanks for reporting this issue, please could you:
|
I'm using pytest with versions above in pyenv, no other related options used Test output does not show anything unexpected, just test passed/failed as when running pytest directly Will add files once I'm back at the machine |
I can replicate this at my end. |
I see a similar issue with If this issue is more general, could the issue description be changed, e.g., to "Test results not updated if tests reside in subdirectory"? |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): not jediExpected behaviour
After fixing a test case and running it via the codelens "Run Test" the success icon in the codelens and the error squiggle on the function should reflect that result
Actual behaviour
Running a test removes the success/failure icon in front of the codelens. Error squiggles are added if the test fails, but not removed, when it succeeds.
Steps to reproduce:
def test_foo(): assert True
)assert False
. Run with codelens "Run Test" -> Tick dissappears, error squiggles appearassert True
and run with codelens -> Output shows success, no tick, error squiggles persistLogs
Logs look good, e.g. Python Test Log has
=========================== 1 passed in 0.06 seconds ===========================
The text was updated successfully, but these errors were encountered: