PTVS
PTVS copied to clipboard
Test Explorer is not displaying the tests with :: correctly
Steps to Reproduce
- Install the python workload.
- Create a python project.
- Set up the python environment, install
pytest
to the environment. - Go to project properties and set the test framework to
pytest
- Add a new python file
test_1.py
and add the code below to it.
def ischildnode(baseid, nodeid):
return nodeid.startswith(baseid)
import pytest
@pytest.mark.parametrize(
"baseid, nodeid, expected",
[
("foo/bar::TestBaz", "foo/bar::TestBop", True),
],
)
def test_ischildnode(baseid, nodeid, expected):
result = ischildnode(baseid, nodeid)
assert result == expected
- Open Test Explorer
Current behavior
Expected behavior -PythonApplication8 -test_1.py -test_ischildnode[foo/bar::TestBaz-foo/bar::TestBop-True]