File tree Expand file tree Collapse file tree
packages/django-google-spanner Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99[run]
1010branch = True
11+ source =
12+ django_spanner
13+
14+ [paths]
15+ source =
16+ django_spanner
17+ */site-packages/django_spanner
1118
1219[report]
13- fail_under = 80
20+ fail_under = 68
1421show_missing = True
1522exclude_lines =
1623 # Re-enable the standard pragma
@@ -20,4 +27,5 @@ exclude_lines =
2027 # Ignore abstract methods
2128 raise NotImplementedError
2229omit =
23- */site-packages/*.py
30+ tests/*
31+ */tests/*
Original file line number Diff line number Diff line change @@ -118,21 +118,21 @@ def default(session):
118118 session .install (
119119 * UNIT_TEST_STANDARD_DEPENDENCIES ,
120120 * UNIT_TEST_EXTERNAL_DEPENDENCIES ,
121- * UNIT_TEST_DEPENDENCIES ,
121+ * UNIT_TEST_MOCKSERVER_DEPENDENCIES ,
122122 )
123123 session .install ("-e" , "." )
124124
125- # Run py.test against the unit tests.
125+ # Run py.test against unit and mockserver tests.
126126 session .run (
127127 "py.test" ,
128128 "--quiet" ,
129129 "--cov=django_spanner" ,
130- "--cov=tests.unit" ,
131130 "--cov-append" ,
132131 "--cov-config=.coveragerc" ,
133132 "--cov-report=" ,
134- "--cov-fail-under=75 " ,
133+ "--cov-fail-under=0 " ,
135134 os .path .join ("tests" , "unit" ),
135+ os .path .join ("tests" , "mockserver_tests" ),
136136 * session .posargs ,
137137 )
138138
@@ -155,6 +155,12 @@ def mockserver(session):
155155 session .run (
156156 "py.test" ,
157157 "--quiet" ,
158+ "--cov=django_spanner" ,
159+ "--cov=tests.mockserver_tests" ,
160+ "--cov-append" ,
161+ "--cov-config=.coveragerc" ,
162+ "--cov-report=" ,
163+ "--cov-fail-under=0" ,
158164 os .path .join ("tests" , "mockserver_tests" ),
159165 * session .posargs ,
160166 )
You can’t perform that action at this time.
0 commit comments