Skip to content
Merged
6 changes: 4 additions & 2 deletions packages/django-google-spanner/.coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
branch = True

[report]
fail_under = 80
fail_under = 100
show_missing = True
exclude_lines =
# Re-enable the standard pragma
Expand All @@ -20,4 +20,6 @@ exclude_lines =
# Ignore abstract methods
raise NotImplementedError
omit =
*/site-packages/*.py
*/site-packages/*.py
tests/*
*/tests/*
8 changes: 7 additions & 1 deletion packages/django-google-spanner/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def default(session):
"--cov-append",
"--cov-config=.coveragerc",
"--cov-report=",
"--cov-fail-under=75",
"--cov-fail-under=0",
os.path.join("tests", "unit"),
*session.posargs,
)
Expand All @@ -155,6 +155,12 @@ def mockserver(session):
session.run(
"py.test",
"--quiet",
"--cov=django_spanner",
"--cov=tests.mockserver_tests",
Comment on lines +158 to +159

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since tests/* and */tests/* are explicitly omitted in .coveragerc, specifying --cov=tests.mockserver_tests here is redundant and will be ignored by coverage. It is cleaner to remove this argument.

Suggested change
"--cov=django_spanner",
"--cov=tests.mockserver_tests",
"--cov=django_spanner",

"--cov-append",
"--cov-config=.coveragerc",
"--cov-report=",
"--cov-fail-under=0",
os.path.join("tests", "mockserver_tests"),
*session.posargs,
)
Expand Down
Loading