Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

JaCoCoverage: Java 7 Code Coverage for NetBeans

DZone's Guide to

JaCoCoverage: Java 7 Code Coverage for NetBeans

· Java Zone
Free Resource

What every Java engineer should know about microservices: Reactive Microservices Architecture.  Brought to you in partnership with Lightbend.

NetBeans had a (great) plugin for Java 6 unit tests code coverage, for Ant based Java SE projects. This plugin was based on the EMMA library, which is not compatible with Java7.

Now, we have two solutions for Java 7 code coverage:

  • for Maven based projects, check: NetBeans documentation on JaCoCo integration
  • for Ant based projects, a new plugin has been developped: TikiOne JaCoCoverage. Based on JaCoCo, it simply provides code coverage feature for Ant based projects (Java Application, Java Library, Java Project with Existing Sources and NetBeans Modules are supported). Check:
    • GitHub for project's sources, news, future features under development and documentation
    • NetBeans PluginPortal for download. Please note that the plugin is validated and available in the NetBeans Plugins Manager (see Tools, Plugins, Available Plugins and look for TikiOne plugins).

TikiOne JaCoCoverage is free and open source (under LGPL licensing) and currently provides:

  • Code highlighting: covered lines, partially covered lines and not covered lines:
  • Action menus to run JaCoCo with the "run" and "test" Ant tasks. That means you can compute code coverage on project run and (JUnit) tests:
  • A short report displayed in the console:
  • For NetBeans 7.3.

    Microservices for Java, explained. Revitalize your legacy systems (and your career) with Reactive Microservices Architecture, a free O'Reilly book. Brought to you in partnership with Lightbend.

    Topics:

    Opinions expressed by DZone contributors are their own.

    THE DZONE NEWSLETTER

    Dev Resources & Solutions Straight to Your Inbox

    Thanks for subscribing!

    Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

    X

    {{ parent.title || parent.header.title}}

    {{ parent.tldr }}

    {{ parent.urlSource.name }}