Skip to content

Commit c0d79ae

Browse files
authored
Merge pull request #8322 from microsoft/branch-cov-python
Adding branch coverage to Python testing docs
2 parents 98148d3 + 7c90e50 commit c0d79ae

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 2 additions & 2 deletions
Loading

docs/python/testing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ To run tests with coverage enabled, select the coverage run icon in the Test Exp
9797

9898
> [!Note]
9999
> Before running tests with coverage, make sure to install the correct testing coverage package for your project.
100+
> Branch coverage is only supported on coverage versions >= 7.7.
100101
101-
Once the coverage run completes, lines are highlighted in the editor for line level coverage. Test coverage results appear as a "Test Coverage" sub-tab in the Test Explorer, which you can also navigate to with **Testing: Focus on Test Coverage View** in Command Palette (`F1)`). On this panel you can view line coverage metrics for each file and folder in your workspace.
102+
Once the coverage run completes, lines are highlighted in the editor for line-level coverage. Test coverage results appear as a "Test Coverage" sub-tab in the Test Explorer, which you can also navigate to with **Testing: Focus on Test Coverage View** in the Command Palette (`kb(workbench.action.showCommands)`). On this panel, you can view line coverage metrics for each file and folder in your workspace, as well as branch coverage, if relevant.
102103

103104
![Gif showing running Python tests with coverage.](images/testing/python-coverage.gif)
104105

0 commit comments

Comments
 (0)