forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-testingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded
Milestone
Description
Environment data
- VS Code version: 1.36
- Extension version (available under the Extensions sidebar): 2019.6.24221
- OS and version: Linux Mint 19.1
- Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.0
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): None
- Relevant/affected Python packages and their versions: pytest-3.9.1, same with pytest 5.0.1
- Jedi or Language Server? (i.e. what is
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): not jedi
Expected 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:
- create test function (e.g.
def test_foo(): assert True
) - Use "Run All Tests" -> tick mark appears in code lens
- change to
assert False
. Run with codelens "Run Test" -> Tick dissappears, error squiggles appear - change back to
assert True
and run with codelens -> Output shows success, no tick, error squiggles persist - Run with "Run All Tests" -> tick mark appears in code lens, error squiggles removed
Logs
Logs look good, e.g. Python Test Log has =========================== 1 passed in 0.06 seconds ===========================
Metadata
Metadata
Assignees
Labels
area-testingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded