Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run coverage #24166

Open
deepak1556 opened this issue Sep 24, 2024 · 1 comment
Open

Unable to run coverage #24166

deepak1556 opened this issue Sep 24, 2024 · 1 comment
Assignees
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@deepak1556
Copy link

deepak1556 commented Sep 24, 2024

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
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Sep 24, 2024
@eleanorjboyd
Copy link
Member

Hi! Did you install pytest-cov? This is usually the reason why this error appears, thanks!

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants