Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Is there a way to enable branch coverage? #116

Description

@snackattas

At least with the python coverage.py, there's an option to enable branch coverage:

This adds attributes like this to the xml, see branches-valid, branches-covered, branch-rate, etc

<?xml version="1.0" ?>
<coverage version="7.4.3" timestamp="1709319429613" lines-valid="883" lines-covered="538" line-rate="0.6093" branches-valid="133" branches-covered="48" branch-rate="0.3609" complexity="0">
	<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.4.3 -->
	<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
	<sources>
		<source>/Users/zattas/fakerepo</source>
	</sources>
	<packages>
		<package name="src" line-rate="0.7214" branch-rate="0.6522" complexity="0">
			<classes>
				<class name="__init__.py" filename="src/__init__.py" complexity="0" line-rate="1" branch-rate="1">
					<methods/>
					<lines/>
				</class>
				<class name="api.py" filename="src/api.py" complexity="0" line-rate="0.7214" branch-rate="0.6522">
					<methods/>
					<lines>
						<line number="1" hits="1"/>
						<line number="2" hits="1"/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions