[ https://issues.apache.org/jira/browse/LUCENE-9188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17028589#comment-17028589 ]
Robert Muir commented on LUCENE-9188: ------------------------------------- Here's a first stab. I had to wrestle with the security permissions but it works. Unfortunately it doesn't help to give just the jacoco agent jar AllPermission so that it can do what it wants, that was the first thing I tried. It is defining new classes and other stuff, and I think there is some gradle stuff mixed in the stacks. With this patch at least it is functional: {noformat} # run tests instrumented and generate the report afterwards. gradlew -p lucene/core test jacocoTestReport -Ptests.coverage=true # open lucene/core/build/reports/jacoco/test/html/index.html in browser {noformat} !report.png! > Add jacoco code coverage support to gradle build > ------------------------------------------------ > > Key: LUCENE-9188 > URL: https://issues.apache.org/jira/browse/LUCENE-9188 > Project: Lucene - Core > Issue Type: Task > Components: general/build > Reporter: Robert Muir > Priority: Major > Attachments: LUCENE-9188.patch, report.png > > > Seems to be missing. I looked into it a little, all the documented ways of > using the jacoco plugin seem to involve black magic if you are using "java" > plugin, but we are using "javaLibrary", so I wasn't able to hold it right. > This one should work very well, it has low overhead and should work fine > running tests in parallel (since it supports merging of coverage data files: > that's how it works in the ant build) -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org