comparison tests/coverage.py @ 2144:d3bddedfdbd0

Add code coverage to the python version of run-tests (inc. annotation) Also include a minor work-around to coverage.py to avoid errors about /<string>
author Stephen Darnell <stephen@darnell.plus.com>
date Thu, 27 Apr 2006 21:59:44 -0700
parents 3094becfd8e8
children 53e843840349
comparison
equal deleted inserted replaced
2138:f5046cab9e2e 2144:d3bddedfdbd0
348 args = self.cexecuted.keys() 348 args = self.cexecuted.keys()
349 ignore_errors = settings.get('ignore-errors') 349 ignore_errors = settings.get('ignore-errors')
350 show_missing = settings.get('show-missing') 350 show_missing = settings.get('show-missing')
351 directory = settings.get('directory') 351 directory = settings.get('directory')
352 omit = filter(None, settings.get('omit', '').split(',')) 352 omit = filter(None, settings.get('omit', '').split(','))
353 omit += ['/<'] # Always skip /<string> etc.
353 354
354 if settings.get('report'): 355 if settings.get('report'):
355 self.report(args, show_missing, ignore_errors, omit_prefixes=omit) 356 self.report(args, show_missing, ignore_errors, omit_prefixes=omit)
356 if settings.get('annotate'): 357 if settings.get('annotate'):
357 self.annotate(args, directory, ignore_errors, omit_prefixes=omit) 358 self.annotate(args, directory, ignore_errors, omit_prefixes=omit)