Skip to content

Commit 8e1733e

Browse files
committed
simplify coverage command
1 parent f3879c0 commit 8e1733e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,8 +890,10 @@ def mx_post_parse_cmd_line(namespace):
890890

891891

892892
def python_coverage(args):
893-
"Generate coverage report either running python-junit gate or the gate passed as argument"
894-
mx.run_mx(['--jacoco-whitelist-package', 'com.oracle.graal.python', '--primary', 'gate', '--tags', args[0] if args else 'python-junit', '--jacocout', 'html'])
893+
"Generate coverage report running args"
894+
mx.run_mx(['--jacoco=on', '--jacoco-whitelist-package=com.oracle.graal.python'] + args)
895+
mx.command_function("jacocoreport")(["--omit-excluded", "--format=html"])
896+
895897

896898

897899
# ----------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)