Skip to content

Commit 7990860

Browse files
committed
update coverage presubmit
1 parent 9ac4ef5 commit 7990860

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

packages/google-auth/noxfile.py

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

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

145140

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

0 commit comments

Comments
 (0)