• DocumentCode
    3691729
  • Title

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

  • Author

    Maurício F. ;Gustavo A. Oliva;Marco A. Gerosa

  • Author_Institution
    Dept. of Comput. Sci., Univ. of Sao Paulo, Sao Paulo, Brazil
  • fYear
    2015
  • Firstpage
    185
  • Lastpage
    190
  • Abstract
    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.
  • Keywords
    "Production","Measurement","Java","Software","Complexity theory","Data mining","Manuals"
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering (SBES), 2015 29th Brazilian Symposium on
  • Type

    conf

  • DOI
    10.1109/SBES.2015.28
  • Filename
    7328023