Closed
Description
Environment data
- VS Code version: 1.60
- Extension version (available under the Extensions sidebar): v2021.9.1191016588
- OS and version: windows 10 1909 & wsl2 ubuntu20.04
- Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.10
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
- Relevant/affected Python packages and their versions: pytest-6.2.5
- Relevant/affected Python-related VS Code extensions and their versions: Pylance v2021.9.0
- Value of the
python.languageServer
setting: Default
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
This simple test should appear succeeded in UI :
def test_passing():
assert 42 == 42
Actual behaviour
The test is failed (red circle) with this reason :
Test result not found for: ./tests/pytest/pytest_test.py::test_passing
note: in output > Python Test Log, the test is passed
Steps to reproduce:
Follow those steps : #16963 (comment) with or without the activation of the insider channel activation.
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
Python interpreter path: ./venv/bin/python
> ~/git/netbox-caas/venv/bin/python -m pytest --rootdir ~/git/netbox-caas --override-ini junit_family=xunit1 --junit-xml=/tmp/tmp-2817iJ4TjLoT6PC5.xml ./tests/pytest/pytest_test.py::test_passing
cwd: ~/git/netbox-caas
Output for Python Test Log
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python Test Log
)
============================= test session starts ==============================
platform linux -- Python 3.8.10, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/gcgg7847/git/netbox-caas
plugins: Faker-8.12.0
collected 1 item
tests/pytest/pytest_test.py . [100%]
-------------- generated xml file: /tmp/tmp-2817vwk6JDLT2v9d.xml ---------------
============================== 1 passed in 0.06s ===============================