coverage: Require 100% coverage in analytics.

This commit is contained in:
Tim Abbott 2017-03-14 17:11:25 -07:00
parent 85fe53f5e3
commit e7b3ea8fab
1 changed files with 8 additions and 4 deletions

View File

@ -17,8 +17,10 @@ from django.conf import settings
from django.test.utils import get_runner from django.test.utils import get_runner
target_fully_covered = {path for target in [ target_fully_covered = {path for target in [
'analytics/tests/*.py',
'analytics/lib/*.py', 'analytics/lib/*.py',
'analytics/models.py',
'analytics/tests/*.py',
'analytics/views.py',
'zerver/context_processors.py', 'zerver/context_processors.py',
'zerver/lib/alert_words.py', 'zerver/lib/alert_words.py',
'zerver/lib/attachments.py', 'zerver/lib/attachments.py',
@ -63,10 +65,12 @@ target_fully_covered = {path for target in [
] for path in glob.glob(target)} ] for path in glob.glob(target)}
not_yet_fully_covered = { not_yet_fully_covered = {
# Goal is for analytics to have 100% coverage # Analytics fixtures library is used to generate test fixtures;
'analytics/lib/counts.py', # isn't properly accounted for in test coverage analysis since it
# runs before tests.
'analytics/lib/fixtures.py', 'analytics/lib/fixtures.py',
'analytics/lib/time_utils.py', # We have 100% coverage on the new stuff; need to refactor old stuff.
'analytics/views.py',
# Major lib files should have 100% coverage # Major lib files should have 100% coverage
'confirmation/models.py', 'confirmation/models.py',
'zerver/decorator.py', 'zerver/decorator.py',