Skip to content

Commit 22b04fc

Browse files
yinghsienwucopybara-github
authored andcommitted
chore: exclude GAPIC tests from coverage report and set the threshold to 85%
PiperOrigin-RevId: 647481339
1 parent 341d287 commit 22b04fc

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.coveragerc

Lines changed: 4 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)