Hi!
Actually JaCoCo support is out-of-the box in NetBeans, the additional
plugin was required for Ant Based projects and it is not maintained
right now (AFAIK it still has to be contributed by Oracle to Apache)
So JaCoCo with Maven project do work though it require some
configuration in the pom.xml.
I'd say the easiest way is to achieve it if you just create a new Gradle
Project from the IDE: File > New Project > Java with Gradle > Java
Application | Java Class Library
The new project will be created with Gradle's Jacoco plugin applied.
NetBeans recognize that, so right clicking the project there will be a
Code Coverage menu where you can enable the collection of the coverage
results. From that point whenever some unit tests were executed the code
coverage results would be updated.
on 5/24/19 3:54 PM, Eduardo Mosqueira Rey wrote:
Hi all,
I used in classroom the JaCoCoverage plugin with NetBeans 8.2 for the
students to check the coverage of their tests.
It had an easy and straightforward installation and was very simple to
use, ideal for newbies.
Nevertheless, the plugin is no longer maintained at it doesn’t work
with NetBeans 11.0.
This year I want to migrate the classroom installation to Apache
NetBeans but the lack of a coverage tool is an inconvenient.
Is there an easy way to install a Coverage tool (whatever) in NetBeans
11.0?
**easy to install** is an important requirement.
Any suggestion would be appreciated.
Many thanks,
-- Eduardo