Integrate Jacoco with the project for collecting code coverage metrics


Currently, There is no way to check how the unit tests cover the codebase. I believe a code coverage utility like Jacoco can be helpful with this and maybe at some point in the future we can make it also part of the continuous build and integration process for Alluxio such that builds can fail if they drop the code coverage.

I am not sure if this was proposed before or not or if it would be even useful for projects like Alluxio. What do you guys think?




Yupeng Fu
April 14, 2018, 2:38 AM

Hi thanks for the proposal. The code coverage would be a good indicator of the project health. And the code coverage enforcement is also common in many other large projects, though in the beginning we may not want the threshold too high to discourage contributions.

It will be great if you can add this improvement.

Mohamed Abo el-Hassan
April 14, 2018, 8:30 PM

Thanks for your feedback. Yes, I agree that we should not start by setting a threshold for code coverage for now. I will just work on evaluating which tool will fit best and then adding it to the reporting process.


Mohamed Abo el-Hassan


Mohamed Abo el-Hassan



Affects versions