[ 
https://issues.apache.org/jira/browse/HADOOP-15190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16340376#comment-16340376
 ] 

Duo Xu commented on HADOOP-15190:
---------------------------------

[~aw] Very cool job.

My initial thought is also to use openclover. But I am thinking jacoco may be 
more widely used in java world.

Here is the command to run with jacoco
{code:java}
 mvn test -Dmaven.test.failure.ignore=true -Dhadoop.skip-jacoco=false       // 
run tests with jacoco enabled

 mvn jacoco:report-aggregate -Dhadoop.skip-jacoco=false       // generate 
aggregate report under hadoop-coverage//target/site/jacoco-aggregate{code}
The report screenshot is attached.

> Use Jacoco to generate Unit Test coverage reports
> -------------------------------------------------
>
>                 Key: HADOOP-15190
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15190
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build
>            Reporter: Duo Xu
>            Assignee: Duo Xu
>            Priority: Minor
>         Attachments: HADOOP-15190.01.patch, jacoco_report_2018_01_25.JPG
>
>
> Currently Hadoop is using maven-clover2-plugin for code coverage, which is 
> outdated. And Atlassian open-sourced clover last year so license cannot be 
> purchased although we can switch to use the license-free version called 
> "openclover".
> This Jira is to replace clover with Jacoco, which is actively maintained by 
> the community.
>   



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to