Skip to content

Commit a8ec5d6

Browse files
committed
fix: remove unwanted file from coverage
1 parent bd8f693 commit a8ec5d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frappe/commands/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def run_tests(context, app=None, module=None, doctype=None, test=(),
441441
if coverage:
442442
# Generate coverage report only for app that is being tested
443443
source_path = os.path.join(get_bench_path(), 'apps', app or 'frappe')
444-
cov = Coverage(source=[source_path], omit=['*.html', '*.js', '*.css'])
444+
cov = Coverage(source=[source_path], omit=['*.html', '*.js', '*.css', '*_dashboard.py', '*/patches/*', 'test_*.py'])
445445
cov.start()
446446

447447
ret = frappe.test_runner.main(app, module, doctype, context.verbose, tests=tests,

0 commit comments

Comments
 (0)