Skip to content

Commit 3ed273a

Browse files
yinghsienwucopybara-github
authored andcommitted
chore: exclude GAPIC tests from coverage report and set the threshold to 85%
FUTURE_COPYBARA_INTEGRATE_REVIEW=#3966 from googleapis:release-please--branches--main 98e236c PiperOrigin-RevId: 647090378
1 parent ef5aeda commit 3ed273a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.coveragerc

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ branch = True
44
[report]
55
show_missing = True
66
omit =
7-
google/cloud/aiplatform/v1/schema/trainingjob/definition/__init__.py
87
google/cloud/aiplatform/vizier/pyvizier/*
8+
google/cloud/aiplatform_v1/*
9+
google/cloud/aiplatform_v1beta1/*
10+
google/cloud/aiplatform/v1/schema/*
11+
google/cloud/aiplatform/v1beta1/schema/*
912
exclude_lines =
1013
# Re-enable the standard pragma
1114
pragma: NO COVER

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def cover(session):
328328
test runs (not system test runs), and then erases coverage data.
329329
"""
330330
session.install("coverage", "pytest-cov")
331-
session.run("coverage", "report", "--show-missing", "--fail-under=98")
331+
session.run("coverage", "report", "--show-missing", "--fail-under=85")
332332

333333
session.run("coverage", "erase")
334334

0 commit comments

Comments
 (0)