forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalitytriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
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
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalitytriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team