Random or Genetic Algorithm Search for Object-Oriented Test Suite Generation?. Shamshiri, S., Rojas, J. M., Fraser, G., & McMinn, P. In Genetic and Evolutionary Computation Conference (GECCO), pages 1367–1374, 2015. ACM. \textbfBest Paper Award (SBSE-SS Track)doi abstract bibtex Achieving high structural coverage is an important aim in software testing. Several search-based techniques have proved successful at automatically generating tests that achieve high coverage. However, despite the well-established arguments behind using evolutionary search algorithms (e.g., genetic algorithms) in preference to random search, it remains an open question whether the benefits can actually be observed in practice when generating unit test suites for object-oriented classes. In this paper, we report an empirical study on the effects of using a genetic algorithm (GA) to generate test suites over generating test suites incrementally with random search, by applying the EvoSuite unit test suite generator to 1,000 classes randomly selected from the SF110 corpus of open source projects. Surprisingly, the results show little difference between the coverage achieved by test suites generated with evolutionary search compared to those generated using random search. A detailed analysis reveals that the genetic algorithm covers more branches of the type where standard fitness functions provide guidance. In practice, however, we observed that the vast majority of branches in the analyzed projects provide no such guidance.
@inproceedings{ShamshiriRFM15,
author = {Sina Shamshiri and Jos\'e Miguel Rojas and Gordon
Fraser and Phil McMinn},
title = {Random or Genetic Algorithm Search for Object-Oriented
Test Suite Generation?},
booktitle = GECCO,
pages = {1367--1374},
doi = {10.1145/2739480.2754696},
publisher = {{ACM}},
year = {2015},
isbn = {978-1-4503-3472-3},
labels = {conf},
note = "\textbf{Best Paper Award (SBSE-SS Track)}",
abstract = {Achieving high structural coverage is an important aim
in software testing. Several search-based techniques have proved
successful at automatically generating tests that achieve high
coverage. However, despite the well-established arguments behind using
evolutionary search algorithms (e.g., genetic algorithms) in
preference to random search, it remains an open question whether the
benefits can actually be observed in practice when generating unit
test suites for object-oriented classes. In this paper, we report an
empirical study on the effects of using a genetic algorithm (GA) to
generate test suites over generating test suites incrementally with
random search, by applying the EvoSuite unit test suite generator to
1,000 classes randomly selected from the SF110 corpus of open source
projects. Surprisingly, the results show little difference between the
coverage achieved by test suites generated with evolutionary search
compared to those generated using random search. A detailed analysis
reveals that the genetic algorithm covers more branches of the type
where standard fitness functions provide guidance. In practice,
however, we observed that the vast majority of branches in the
analyzed projects provide no such guidance. }
}
Downloads: 0
{"_id":"guJbbYAJ2fiFJdW4Q","bibbaseid":"shamshiri-rojas-fraser-mcminn-randomorgeneticalgorithmsearchforobjectorientedtestsuitegeneration-2015","author_short":["Shamshiri, S.","Rojas, J. M.","Fraser, G.","McMinn, P."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","author":[{"firstnames":["Sina"],"propositions":[],"lastnames":["Shamshiri"],"suffixes":[]},{"firstnames":["José","Miguel"],"propositions":[],"lastnames":["Rojas"],"suffixes":[]},{"firstnames":["Gordon"],"propositions":[],"lastnames":["Fraser"],"suffixes":[]},{"firstnames":["Phil"],"propositions":[],"lastnames":["McMinn"],"suffixes":[]}],"title":"Random or Genetic Algorithm Search for Object-Oriented Test Suite Generation?","booktitle":"Genetic and Evolutionary Computation Conference (GECCO)","pages":"1367–1374","doi":"10.1145/2739480.2754696","publisher":"ACM","year":"2015","isbn":"978-1-4503-3472-3","labels":"conf","note":"\\textbfBest Paper Award (SBSE-SS Track)","abstract":"Achieving high structural coverage is an important aim in software testing. Several search-based techniques have proved successful at automatically generating tests that achieve high coverage. However, despite the well-established arguments behind using evolutionary search algorithms (e.g., genetic algorithms) in preference to random search, it remains an open question whether the benefits can actually be observed in practice when generating unit test suites for object-oriented classes. In this paper, we report an empirical study on the effects of using a genetic algorithm (GA) to generate test suites over generating test suites incrementally with random search, by applying the EvoSuite unit test suite generator to 1,000 classes randomly selected from the SF110 corpus of open source projects. Surprisingly, the results show little difference between the coverage achieved by test suites generated with evolutionary search compared to those generated using random search. A detailed analysis reveals that the genetic algorithm covers more branches of the type where standard fitness functions provide guidance. In practice, however, we observed that the vast majority of branches in the analyzed projects provide no such guidance. ","bibtex":"@inproceedings{ShamshiriRFM15,\n author = {Sina Shamshiri and Jos\\'e Miguel Rojas and Gordon\n Fraser and Phil McMinn},\n title\t = {Random or Genetic Algorithm Search for Object-Oriented\n Test Suite Generation?},\n booktitle = GECCO,\n pages\t = {1367--1374},\n doi\t = {10.1145/2739480.2754696},\n publisher = {{ACM}},\n year\t = {2015},\n isbn\t = {978-1-4503-3472-3},\n labels = {conf},\n note = \"\\textbf{Best Paper Award (SBSE-SS Track)}\",\n abstract = {Achieving high structural coverage is an important aim\nin software testing. Several search-based techniques have proved\nsuccessful at automatically generating tests that achieve high\ncoverage. However, despite the well-established arguments behind using\nevolutionary search algorithms (e.g., genetic algorithms) in\npreference to random search, it remains an open question whether the\nbenefits can actually be observed in practice when generating unit\ntest suites for object-oriented classes. In this paper, we report an\nempirical study on the effects of using a genetic algorithm (GA) to\ngenerate test suites over generating test suites incrementally with\nrandom search, by applying the EvoSuite unit test suite generator to\n1,000 classes randomly selected from the SF110 corpus of open source\nprojects. Surprisingly, the results show little difference between the\ncoverage achieved by test suites generated with evolutionary search\ncompared to those generated using random search. A detailed analysis\nreveals that the genetic algorithm covers more branches of the type\nwhere standard fitness functions provide guidance. In practice,\nhowever, we observed that the vast majority of branches in the\nanalyzed projects provide no such guidance. }\n}\n\n","author_short":["Shamshiri, S.","Rojas, J. M.","Fraser, G.","McMinn, P."],"key":"ShamshiriRFM15","id":"ShamshiriRFM15","bibbaseid":"shamshiri-rojas-fraser-mcminn-randomorgeneticalgorithmsearchforobjectorientedtestsuitegeneration-2015","role":"author","urls":{},"metadata":{"authorlinks":{}},"downloads":0,"html":""},"bibtype":"inproceedings","biburl":"https://jmrojas.github.io/cv/mybibtex.bib","dataSources":["HH2ZMm8PqShQeXCWM"],"keywords":[],"search_terms":["random","genetic","algorithm","search","object","oriented","test","suite","generation","shamshiri","rojas","fraser","mcminn"],"title":"Random or Genetic Algorithm Search for Object-Oriented Test Suite Generation?","year":2015}