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

Verify, standardize, and correct the Big 4 + more– name, email, phone and global addresses – try our Data Quality APIs now at Melissa Developer Portal!

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.

    Developers! Quickly and easily gain access to the tools and information you need! Explore, test and combine our data quality APIs at Melissa Developer Portal – home to tools that save time and boost revenue. Our APIs verify, standardize, and correct the Big 4 + more – name, email, phone and global addresses – to ensure accurate delivery, prevent blacklisting and identify risks in real-time.

    Topics:

    Opinions expressed by DZone contributors are their own.

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

    {{ parent.tldr }}

    {{ parent.urlSource.name }}