Compare coverage reports
Covdiff is primarily used to compare coverage reports generated by the fuzzing team and Mozilla CI.
usage: __main__.py [-h] [-f FILE] reports reports dest
Compare two coverage reports
positional arguments:
reports Reports to compare
dest Path to store results
optional arguments:
-h, --help show this help message and exit
-f FILE, --filter FILE Path to filter list
# Fetch a coverage report from a fuzzmanager instance
wget https://fuzzmanager/covmanager/collections/1234/download/ -O fuzzing.json
# Fetch a coverage report from CI
# Replace `{REVISION}` or use `latest`
wget https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.relman.code-coverage.production.repo.mozilla-central.{REVISION}/artifacts/public/code-coverage-report.json -O ci.json
This project includes numerous pre-commit hooks. Before committing, please make sure that these hooks are installed.
pre-commit install