From 376ba5392ea540d9705fd45c0e7c92139bbb798e Mon Sep 17 00:00:00 2001 From: Anurag Mishra Date: Thu, 13 Jun 2019 16:53:03 +0530 Subject: [PATCH] fix: remove *_test.py --- frappe/commands/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/commands/utils.py b/frappe/commands/utils.py index 3db7007984..1be1848f30 100644 --- a/frappe/commands/utils.py +++ b/frappe/commands/utils.py @@ -441,7 +441,7 @@ 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(source=[source_path], omit=['*.html', '*.js', '*.css', '*_dashboard.py', '*/patches/*', 'test_*.py']) + cov = Coverage(source=[source_path], omit=['*.html', '*.js', '*.css', '*/doctype/*/*_dashboard.py', '*/patches/*']) cov.start() ret = frappe.test_runner.main(app, module, doctype, context.verbose, tests=tests,