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 <[email protected]>
Reviewed-by: Yiwei Zhang <[email protected]>
Commit-Queue: Alex Ovsienko <[email protected]>
diff --git a/.gitignore b/.gitignore
index 6478ff3..0562c41 100644
--- a/.gitignore
+++ b/.gitignore
@@ -99,3 +99,7 @@
# 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 f115dc0..b8fe444 100644
--- a/.vpython3
+++ b/.vpython3
@@ -101,4 +101,10 @@
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 130a86b..7230f0c 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