File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -128,19 +128,14 @@ def unit(session):
128128
129129@nox .session (python = DEFAULT_PYTHON_VERSION )
130130def 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" )
You can’t perform that action at this time.
0 commit comments