The Community for Technology Leaders
2015 29th Brazilian Symposium on Software Engineering (SBES) (2015)
Belo Horizonte-MG, Brazil
Sept. 21, 2015 to Sept. 26, 2015
ISBN: 978-1-4673-9272-3
pp: 185-190
The calculation of test coverage is often unfeasible for large-scale mining software repositories studies, as its computation requires building each project and executing their test suites. Because of that, we have been working on heuristics to calculate code coverage based on static code analysis. However, our results have been disappointing so far. In this paper, we present our approach to the problem and an evaluation involving 18 open source projects (around 2,700 classes) from the Apache Software Foundation. Results show that our approach provides acceptable results for only 50% of all classes. We believe researchers can learn from our mistakes and possibly derive a better approach. We advise researchers who need to use code coverage in their studies to select projects with a well-defined build system, such as Maven.
Production, Measurement, Java, Software, Complexity theory, Data mining, Manuals

M. F. Aniche, G. A. Oliva and M. A. Gerosa, "Why Statically Estimate Code Coverage is So Hard? A Report of Lessons Learned," 2015 29th Brazilian Symposium on Software Engineering (SBES), Belo Horizonte-MG, Brazil, 2015, pp. 185-190.
180 ms
(Ver 3.3 (11022016))