Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 2 KB

DOCUMENTATION.md

File metadata and controls

37 lines (23 loc) · 2 KB

JaCoCoverage Documentation

What Is JaCoCoverage

The JaCoCoverage Plugin is a Netbeans plugin that enhances the existing NetBeans functionality with new code coverage features. In other words, you can launch your program or test it and JaCoCoverage will provide you coverage information by highlighting your source code files and providing various types of reports (currently, textual and HTML). This way, you can easily know what piece of code has been executed or not.

How It Works

The JaCoCoverage Plugin is based on JaCoCo: a library created by the EclEmma team. This library is able to generate coverage data when you launch a Java program. More precsisely, JaCoCoverage uses the JaCoCo Java Agent to enable coverage collections (i.e. a JaCoCo Java Agent is attached to your program). When your program terminates, JaCoCo generates coverage data and JaCoCoverage assures the coverage information integration in your NetBeans IDE. JaCoCo and JaCoCoverage support Java 7 and 8 and are also tested with Java 6. It may work with Java 5 too.

Media

NetBeans Java editor showing highlighted code. You can see covered, partially covered and not covered code, and annotations in the left margin:

Screenshot

A context menu is enabled for supported projects. It allows you to run and test your programs with JaCoCoverage:

Screenshot

JaCoCoverage is configurable:

Screenshot

A short textual coverage report:

Screenshot

A complete HTML coverage report:

Screenshot

Author

License

WTFPL License. In other words, you can do what you want: this project is entirely OpenSource, Free and Gratis.