Skip to content

Commit e7c9799

Browse files
committed
update coverage presubmit
1 parent 4e2c2ee commit e7c9799

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

noxfile.py

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,14 @@ def unit(session):
129129

130130
@nox.session(python=DEFAULT_PYTHON_VERSION)
131131
def cover(session):
132-
session.env["PIP_EXTRA_INDEX_URL"] = "https://pypi.org/simple"
133-
session.install("-e", ".[testing]")
134-
session.run(
135-
"pytest",
136-
"--cov=google.auth",
137-
"--cov=google.oauth2",
138-
"--cov=tests",
139-
"--cov=tests_async",
140-
"--cov-report=term-missing",
141-
"tests",
142-
"tests_async",
143-
)
132+
"""Run the final coverage report.
133+
134+
This outputs the coverage report aggregating coverage from the unit
135+
test runs (not system test runs), and then erases coverage data.
136+
"""
137+
session.install("coverage", "pytest-cov")
144138
session.run("coverage", "report", "--show-missing", "--fail-under=100")
139+
session.run("coverage", "erase")
145140

146141

147142
@nox.session(python="3.10")

0 commit comments

Comments
 (0)