Do Automatically Generated Unit Tests Find Real Faults? An Empirical Study of Effectiveness and Challenges. Shamshiri, S., Just, R., Rojas, J. M., Fraser, G., McMinn, P., & Arcuri, A. In IEEE/ACM Int. Conference on Automated Software Engineering (ASE), pages 201–211, 2015. ACM. \textbfACM SIGSOFT Distinguished Paper Award
abstract   bibtex   
Rather than tediously writing unit tests manually, tools can be used to generate them automatically — sometimes even resulting in higher code coverage than manual testing. But how good are these tests at actually finding faults? To answer this question, we applied three state-of-the-art unit test generation tools for Java (Randoop, EvoSuite, and Agitar) to the 357 real faults in the Defects4J dataset and investigated how well the generated test suites perform at detecting these faults. Although the automatically generated test suites detected 55.7% of the faults overall, only 19.9% of all the individual test suites detected a fault. By studying the effectiveness and problems of the individual tools and the tests they generate, we derive insights to support the development of automated unit test generators that achieve a higher fault detection rate. These insights include 1) improving the obtained code coverage so that faulty statements are executed in the first instance, 2) improving the propagation of faulty program states to an observable output, coupled with the generation of more sensitive assertions, and 3) improving the simulation of the execution environment to detect faults that are dependent on external factors such as date and time.
@inproceedings{ShamshiriJRFMA2015,
  author    = {Sina Shamshiri and Ren{\'e} Just and Jo{s\'e} Miguel Rojas
               and Gordon Fraser and Phil McMinn and Andrea Arcuri},
  title	    = {Do Automatically Generated Unit Tests Find Real Faults?
               An Empirical Study of Effectiveness and Challenges},
  booktitle = ASE,
  publisher = {ACM},
  pages	    = {201--211},
  year	    = {2015},
  labels    = {conf},
  note	    = "\textbf{ACM SIGSOFT Distinguished Paper Award}",
  abstract  = {Rather than tediously writing unit tests manually,
tools can be used to generate them automatically --- sometimes even
resulting in higher code coverage than manual testing. But how good
are these tests at actually finding faults? To answer this question,
we applied three state-of-the-art unit test generation tools for Java
(Randoop, EvoSuite, and Agitar) to the 357 real faults in the
Defects4J dataset and investigated how well the generated test suites
perform at detecting these faults. Although the automatically
generated test suites detected 55.7\% of the faults overall, only
19.9\% of all the individual test suites detected a fault. By studying
the effectiveness and problems of the individual tools and the tests
they generate, we derive insights to support the development of
automated unit test generators that achieve a higher fault detection
rate. These insights include 1)~improving the obtained code coverage
so that faulty statements are executed in the first instance,
2)~improving the propagation of faulty program states to an observable
output, coupled with the generation of more sensitive assertions, and
3)~improving the simulation of the execution environment to detect
faults that are dependent on external factors such as date and time.}
}

Downloads: 0