experimentally enable the coverage tool

This commit is contained in:
Radosław Waśko 2023-11-21 14:29:06 +01:00
parent d136c8e40c
commit fcd27658d7
2 changed files with 9 additions and 1 deletions

View File

@ -628,6 +628,12 @@ object Main {
if (inspect) { if (inspect) {
options.put("inspect", "") options.put("inspect", "")
} }
options.put("coverage", "true")
options.put("coverage.Output", "lcov")
options.put("coverage.OutputFile", "lcov.info")
options.put("coverage.FilterFile", "*Standard*")
val context = new ContextFactory().create( val context = new ContextFactory().create(
projectRoot, projectRoot,
System.in, System.in,

View File

@ -23,7 +23,9 @@ object GraalVM {
"org.graalvm.polyglot" % "polyglot" % version, "org.graalvm.polyglot" % "polyglot" % version,
"org.graalvm.truffle" % "truffle-api" % version, "org.graalvm.truffle" % "truffle-api" % version,
"org.graalvm.truffle" % "truffle-runtime" % version, "org.graalvm.truffle" % "truffle-runtime" % version,
"org.graalvm.truffle" % "truffle-compiler" % version "org.graalvm.truffle" % "truffle-compiler" % version,
"org.graalvm.shadowed" % "json" % version,
"org.graalvm.tools" % "coverage-tool" % version
) )
val sdkPkgs = Seq( val sdkPkgs = Seq(