Why Statically Estimate Code Coverage Is So Hard? A Report of Lessons Learned

被引:0
作者
Aniche, Mauricio F. [1 ]
Oliva, Gustavo A. [1 ]
Gerosa, Marco A. [1 ]
机构
[1] Univ Sao Paulo, Dept Comp Sci, BR-05508 Sao Paulo, Brazil
来源
2015 29TH BRAZILIAN SYMPOSIUM ON SOFTWARE ENGINEERING | 2015年
关键词
D O I
10.1109/SBES.2015.28
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:185 / 190
页数:6
相关论文
共 9 条
[1]  
Alves T. L., 2009, IEEE INT WORK C SOUR
[2]  
Chen M., 1996, P 3 INT SOFTW METR S
[3]  
Del Frate F., 1995, 6 INT S SOFTW REL EN
[4]  
Elbaum S., 2001, IEEE INT C SOFTW MAI
[5]  
Hassan A.E, 2010, Proceedings of the FSE/SDP workshop on Future of Software Engineering Research, P161
[6]  
Hassan AE., 2010, Proceedings of the 32nd acm/ieee international conference on software engineering (icse 2010), V2, P503
[7]   The Road Ahead for Mining Software Repositories [J].
Hassan, Ahmed E. .
2008 FRONTIERS OF SOFTWARE MAINTENANCE, 2008, :48-57
[8]  
MCCABE TJ, 1976, P 2 INT C SOFTW ENG, P407
[9]  
Miller J., 1963, COMMUNICATIONS ACM