Ant colony optimization for object-oriented unit test generation
Conference paper
Bruce, D., Menéndez, H., Barr, E. and Clark, D. 2020. Ant colony optimization for object-oriented unit test generation. Dorigo, M., Stützle, T., Blesa Aguilera, M., Blum, C., Haman, H., Heinrich, M. and Strobel, V. (ed.) ANTS 2020. Barcelona, Spain 26 - 28 Oct 2020 Springer. pp. 29-41 https://doi.org/10.1007/978-3-030-60376-2_3
Type | Conference paper |
---|---|
Title | Ant colony optimization for object-oriented unit test generation |
Authors | Bruce, D., Menéndez, H., Barr, E. and Clark, D. |
Abstract | Generating useful unit tests for object-oriented programs is difficult for traditional optimization methods. One not only needs to identify values to be used as inputs, but also synthesize a program which creates the required state in the program under test. Many existing Automated Test Generation (ATG) approaches combine search with performance-enhancing heuristics. We present Tiered Ant Colony Optimization (Taco) for generating unit tests for object-oriented programs. The algorithm is formed of three Tiers of ACO, each of which tackles a distinct task: goal prioritization, test program synthesis, and data generation for the synthesised program. Test program synthesis allows the creation of complex objects, and exploration of program state, which is the breakthrough that has allowed the successful application of ACO to object-oriented test generation. Taco brings the mature search ecosystem of ACO to bear on ATG for complex object-oriented programs, providing a viable alternative to current approaches. To demonstrate the effectiveness of Taco, we have developed a proof-of-concept tool which successfully generated tests for an average of 54% of the methods in 170 Java classes, a result competitive with industry standard Randoop. |
Conference | ANTS 2020 |
Page range | 29-41 |
Editors | Dorigo, M., Stützle, T., Blesa Aguilera, M., Blum, C., Haman, H., Heinrich, M. and Strobel, V. |
ISSN | 0302-9743 |
ISBN | |
Hardcover | 9783030603755 |
Electronic | 9783030603762 |
Publisher | Springer |
Publication dates | |
Online | 23 Oct 2020 |
23 Oct 2020 | |
Publication process dates | |
Deposited | 08 Apr 2021 |
Accepted | 01 Apr 2020 |
Output status | Published |
Accepted author manuscript | |
Copyright Statement | The final authenticated version is available online at https://doi.org/10.1007/978-3-030-60376-2_3. |
Additional information | Part of the Lecture Notes in Computer Science book series (LNCS, volume 12421). |
Web address (URL) | https://link.springer.com/chapter/10.1007/978-3-030-60376-2_3 |
Digital Object Identifier (DOI) | https://doi.org/10.1007/978-3-030-60376-2_3 |
Language | English |
Book title | Swarm Intelligence: 12th International Conference, ANTS 2020, Barcelona, Spain, October 26–28, 2020, Proceedings |
https://repository.mdx.ac.uk/item/894z5
Download files
18
total views7
total downloads0
views this month0
downloads this month