fix(coverage): Ignore patches and dashboard from coverage report (#7685)
fix(coverage): Ignore patches and dashboard from coverage report
This commit is contained in:
commit
2797794de9
1 changed files with 1 additions and 1 deletions
|
|
@ -441,7 +441,7 @@ def run_tests(context, app=None, module=None, doctype=None, test=(),
|
||||||
if coverage:
|
if coverage:
|
||||||
# Generate coverage report only for app that is being tested
|
# Generate coverage report only for app that is being tested
|
||||||
source_path = os.path.join(get_bench_path(), 'apps', app or 'frappe')
|
source_path = os.path.join(get_bench_path(), 'apps', app or 'frappe')
|
||||||
cov = Coverage(source=[source_path], omit=['*.html', '*.js', '*.css'])
|
cov = Coverage(source=[source_path], omit=['*.html', '*.js', '*.xml', '*.css', '*/doctype/*/*_dashboard.py', '*/patches/*'])
|
||||||
cov.start()
|
cov.start()
|
||||||
|
|
||||||
ret = frappe.test_runner.main(app, module, doctype, context.verbose, tests=tests,
|
ret = frappe.test_runner.main(app, module, doctype, context.verbose, tests=tests,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue