Lines Matching +full:pytest +full:- +full:cov
7 # http://www.apache.org/licenses/LICENSE-2.0
21 import nox # pytype: disable=import-error
27 BLACK_EXCLUDES = ["--exclude", "^/google/api_core/operations_v1/__init__.py"]
32 # 'docfx' is excluded since it only needs to run in 'docs-presubmit'
64 session.install("flake8", "flake8-import-order", BLACK_VERSION)
67 "black", "--check", *BLACK_EXCLUDES, *BLACK_PATHS,
91 CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
94 # Install all test dependencies, then install this package in-place.
95 session.install("mock", "pytest", "pytest-cov")
97 session.install("-e", ".[grpc]", "-c", constraints_path)
99 session.install("-e", ".", "-c", constraints_path)
103 "-m",
105 "--quiet",
106 "--cov=google.api_core",
107 "--cov=tests.unit",
108 "--cov-append",
109 "--cov-config=.coveragerc",
110 "--cov-report=",
111 "--cov-fail-under=0",
116 # Inject AsyncIO content and proto-plus, if version >= 3.6.
117 # proto-plus is needed for a field mask test in test_protobuf_helpers.py
119 session.install("asyncmock", "pytest-asyncio", "proto-plus")
121 pytest_args.append("--cov=tests.asyncio")
137 """Run the unit test suite with grpcio-gcp installed."""
139 CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
141 # Install grpcio-gcp
142 session.install("-e", ".[grpcgcp]", "-c", constraints_path)
158 session.run("python", "setup.py", "check", "--restructuredtext", "--strict")
164 """Run type-checking."""
171 """Run type-checking."""
174 "types-setuptools", "types-requests", "types-protobuf", "types-mock"
186 session.install("coverage", "pytest-cov")
187 session.run("coverage", "report", "--show-missing", "--fail-under=100")
195 session.install("-e", ".[grpc, grpcgcp]")
200 "sphinx-build",
201 "-W", # warnings as errors
202 "-T", # show full traceback on exception
203 "-N", # no colors
204 "-b",
206 "-d",
217 session.install("-e", ".")
219 "sphinx==4.0.1", "alabaster", "recommonmark", "gcp-sphinx-docfx-yaml"
224 "sphinx-build",
225 "-T", # show full traceback on exception
226 "-N", # no colors
227 "-D",
239 "-b",
241 "-d",