Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Sonar
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<h1>Description / Feature</h1><p>Get code coverage for Java project with <a class="external-link" href="http://www.eclemma.org/jacoco/index.html" rel="nofollow">JaCoCo</a> (an open source and robust Java code coverage tool, developed by the authors of EclEmma). <span style="font-size: 10.0pt;line-height: 13.0pt;">For more information, see: </span><a class="external-link" href="http://www.sonarsource.org/pick-your-code-coverage-tool-in-sonar-2-2/" rel="nofollow" style="font-size: 10.0pt;line-height: 13.0pt;">Comparison of Emma, Clover, Cobertura and JaCoCo</a><span style="font-size: 10.0pt;line-height: 13.0pt;">.</span></p><table class="confluenceTable"><tbody><tr><th class="confluenceTh"><p><strong>JaCoCo Plugin</strong></p></th><th class="nohighlight confluenceTh" colspan="1" style="text-align: right;">1.1<strong><br /></strong></th><th class="nohighlight confluenceTh" colspan="1" style="text-align: right;">1.2</th></tr><tr><td class="highlight confluenceTd"><p>JaCoCo</p></td><td colspan="1" class="confluenceTd">0.5.10</td><td colspan="1" class="confluenceTd">0.6.2</td></tr></tbody></table><h1>Installation</h1><ol><li>Install the JaCoCo plugin through the <a href="http://docs.codehaus.org/display/SONAR/Update+Center">Update Center</a> (since Sonar 3.5) or download it into the SONAR_HOME/extensions/plugins directory from the <a class="confluence-link" href="/display/SONAR/Java+Ecosystem" data-linked-resource-id="230396085" data-linked-resource-type="page" data-linked-resource-default-alias="Java Ecosystem" data-base-url="http://docs.codehaus.org">Java Ecosystem page</a>.</li><li>Restart the Sonar server</li></ol><h1>Usage</h1><p>See <a class="confluence-link" href="/display/SONAR/Code+Coverage+by+Unit+Tests+for+Java+Project" data-linked-resource-id="230397062" data-linked-resource-type="page" data-linked-resource-default-alias="Code Coverage by Unit Tests for Java Project" data-base-url="http://docs.codehaus.org">Code Coverage by Unit Tests for Java Project tutorial</a>.</p><h1><span style="color: rgb(0,0,0);">Known Limitations</span></h1><ul><li>Some libraries complain on classes, which were instrumented by JaCoCo, so exclusions must be set:<br /><ul><li>Javassist (e.g. when Hibernate used) - "*_javassist_<strong><em>*</em></strong>"</li><li>Drools - "org.drools.*"</li></ul></li><li>The exact number of line hits is not available, because JaCoCo reports only status of line (no code, not covered, partly covered, fully covered) - see <a class="external-link" href="http://www.eclemma.org/jacoco/trunk/doc/counters.html" rel="nofollow">JaCoCo Coverage Counters</a>.</li></ul>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced