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 @@ -129,19 +129,14 @@ def unit(session):
129129
130130@nox .session (python = DEFAULT_PYTHON_VERSION )
131131def 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" )
You can’t perform that action at this time.
0 commit comments