forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked onReady to be worked on
Description
vscode-python assumes that pytest-cov is required to collect coverage. Many people just run coverage run pytest instead, which has several advantages.
So you should
- have the “run with coverage” button check if if
pytest-covis installed in the environment, and if not, runcoverage.Coverage().start()beforepytest.main()instead of adding--cov*args topytest.main()(inrun_pytest_script.py) - in the plugin, you need to do a different check than checking for
--cov-branchto setINCLUDE_BRANCHES
eleanorjboyd
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked onReady to be worked on