Skip to content

Tests in root directory are not displayed in explorer #5318

@DonJayamanne

Description

@DonJayamanne
#  foo.py
def bar(x):
    return x + 10

############################################

#  test_foo.py 
import foo


def test_a():
    assert 1 == 1


def test_b():
    assert foo.bar(5) == 15
  • Create above files in an empty workspace folder
  • Configure to use pytest
  • Test explorer is empty

Metadata

Metadata

Assignees

Labels

area-testingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions