Skip to content

Commit e3814da

Browse files
committed
Adding small notes about branch coverage
1 parent ccd5ddf commit e3814da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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 Command Palette (`F1)`). 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)