Skip to content

Commit 5aab31e

Browse files
committed
mx command to generate jacoco report
1 parent d3ad596 commit 5aab31e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,10 @@ def mx_post_parse_cmd_line(namespace):
859859
_register_bench_suites(namespace)
860860

861861

862+
def python_coverage(args):
863+
mx.run_mx(['--jacoco-whitelist-package', 'com.oracle.graal.python', '--primary', 'gate', '--tags', 'python-junit', '--jacocout', 'html'])
864+
865+
862866
# ----------------------------------------------------------------------------------------------------------------------
863867
#
864868
# register the suite commands (if any)
@@ -882,4 +886,5 @@ def mx_post_parse_cmd_line(namespace):
882886
'nativeclean': [nativeclean, ''],
883887
'python-so-test': [run_shared_lib_test, ''],
884888
'python-src-import': [import_python_sources, ''],
889+
'python-coverage': [python_coverage, ''],
885890
})

0 commit comments

Comments
 (0)