Report coverage on unexecuted files as well
keyword argument `include` doesn't seem to report on unexecuted files coverage.py documentation claims using `source` instead will do just that
This commit is contained in:
parent
bdbf604317
commit
768f28f5a2
1 changed files with 2 additions and 2 deletions
|
|
@ -397,8 +397,8 @@ def run_tests(context, app=None, module=None, doctype=None, test=(),
|
|||
|
||||
if coverage:
|
||||
# Generate coverage report only for app that is being tested
|
||||
source_path = os.path.join(get_bench_path(), 'apps', app or 'frappe', '*')
|
||||
cov = Coverage(include=source_path, omit=['*.html', '*.js', '*.css'])
|
||||
source_path = os.path.join(get_bench_path(), 'apps', app or 'frappe')
|
||||
cov = Coverage(source=[source_path], omit=['*.html', '*.js', '*.css'])
|
||||
cov.start()
|
||||
|
||||
ret = frappe.test_runner.main(app, module, doctype, context.verbose, tests=tests,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue