-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73755/
-----------------------------------------------------------
(Updated Jan. 19, 2022, 5 a.m.)
Review request for ranger, Dineshkumar Yadav, Abhay Kulkarni, Madhan Neethiraj,
Mehul Parikh, Ramesh Mani, Sailaja Polavarapu, and Velmurugan Periasamy.
Changes
-------
rebased the patch
Bugs: RANGER-3539
https://issues.apache.org/jira/browse/RANGER-3539
Repository: ranger
Description
-------
**Problem Statement:** Currently there is no way to figure out Which part of
the Ranger code has test coverage.
**Proposed Solution:** Proposing jacoco-maven-plugin as part of build process
to improve test coverage.
Diffs (updated)
-----
pom.xml 13f9bfdc5
Diff: https://reviews.apache.org/r/73755/diff/4/
Changes: https://reviews.apache.org/r/73755/diff/3-4/
Testing
-------
**Commands to generate test coverage report:**
1) Build ranger using command: mvn clean install
2) Install jacoco server either at local or remote and run it
3) Run command to generate report:
sample:
mvn clean install -Dsonar.host.url=http://1.2.3.4:1234 -DskipTests -Psonar
-Dsonar.coverage.jacoco.xmlReportPaths=/path/to/xmlreport.xml
-Dsonar.projectKey=ranger_public -Dsonar.projectName=Ranger_AdminServer
References:
https://www.baeldung.com/jacoco
https://www.baeldung.com/sonarqube-jacoco-code-coverage
https://mkyong.com/maven/maven-jacoco-code-coverage-example/
https://medium.com/backend-habit/generate-codecoverage-report-with-jacoco-and-sonarqube-ed15c4045885
Thanks,
Pradeep Agrawal