diff --git a/engine/runner/src/main/scala/org/enso/runner/Main.scala b/engine/runner/src/main/scala/org/enso/runner/Main.scala index 3f9af6be37..720c558fd6 100644 --- a/engine/runner/src/main/scala/org/enso/runner/Main.scala +++ b/engine/runner/src/main/scala/org/enso/runner/Main.scala @@ -628,6 +628,12 @@ object Main { if (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( projectRoot, System.in, diff --git a/project/GraalVM.scala b/project/GraalVM.scala index 0e156acbb7..06d0257b87 100644 --- a/project/GraalVM.scala +++ b/project/GraalVM.scala @@ -23,7 +23,9 @@ object GraalVM { "org.graalvm.polyglot" % "polyglot" % version, "org.graalvm.truffle" % "truffle-api" % 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(