From cd4db8fd7f037c88374a166c11d5b2e8e7425f68 Mon Sep 17 00:00:00 2001 From: Alex Ovsienko Date: Wed, 10 Dec 2025 09:45:57 -0800 Subject: [PATCH] Add coverage library to vpython3 so that we can have better insight in how we stand wrt our test coverage in depot_tools. Bug: b/459690822 Change-Id: I17d67e0530755fa9c07bbc4dabf6d81b6a6a6964 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7244730 Auto-Submit: Alex Ovsienko Reviewed-by: Yiwei Zhang Commit-Queue: Alex Ovsienko --- .gitignore | 4 ++++ .vpython3 | 6 ++++++ pyproject.toml | 3 +++ 3 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index 6478ff33c6..0562c417f5 100644 --- a/.gitignore +++ b/.gitignore @@ -99,3 +99,7 @@ testing_support/google_appengine # Ignore gemini-cli configs /.gemini/ + +# Ignore coverage results file and htlp folder. +.coverage +htmlcov/ \ No newline at end of file diff --git a/.vpython3 b/.vpython3 index f115dc044d..b8fe444913 100644 --- a/.vpython3 +++ b/.vpython3 @@ -101,4 +101,10 @@ wheel: < wheel: < name: "infra/python/wheels/lxml/${vpython_platform}" version: "version:4.9.3" +> + +# To be used by developers running unit test coverage. +wheel: < + name: "infra/python/wheels/coverage-py3" + version: "version:7.13.0" > \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 130a86b850..7230f0cb9b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,3 +2,6 @@ venvPath = 'recipes/.recipe_deps/_venv' venv = 'normal' extraPaths = ['recipes/.recipe_deps/_path'] + +[tool.coverage.run] +disable_warnings = ["no-ctracer"] \ No newline at end of file