Skip to content

Unable to run coverage #24166

Closed as not planned
Closed as not planned
@deepak1556

Description

@deepak1556

Testing #24160

Python extension - v2024.15.2024092301 (pre-release)

Coverage is enabled, adding branch coverage as an argument.
Running pytest with args: ['-p', 'vscode_pytest', '--rootdir=/Users/demohan/github/inc_dec_example_repo', '--cov=.', '--cov-branch', '/Users/demohan/github/inc_dec_example_repo/inc_dec_example_test_suite/test_two_classes.py::ClassA::test_a1', '/Users/demohan/github/inc_dec_example_repo/inc_dec_example_test_suite/test_two_classes.py::ClassA::test_a2', '/Users/demohan/github/inc_dec_example_repo/inc_dec_example_test_suite/test_two_classes.py::ClassB::test_b1', '/Users/demohan/github/inc_dec_example_repo/inc_dec_example_test_suite/test_two_classes.py::ClassB::test_b2']
ERROR: usage: run_pytest_script.py [options] [file_or_dir] [file_or_dir] [...]
run_pytest_script.py: error: unrecognized arguments: --cov=. --cov-branch
  inifile: None
  rootdir: /Users/demohan/github/inc_dec_example_repo

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions