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
TypeConference paper
TitleAnt colony optimization for object-oriented unit test generation
AuthorsBruce, 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.

ConferenceANTS 2020
Page range29-41
EditorsDorigo, M., Stützle, T., Blesa Aguilera, M., Blum, C., Haman, H., Heinrich, M. and Strobel, V.
ISSN0302-9743
ISBN
Hardcover9783030603755
Electronic9783030603762
PublisherSpringer
Publication dates
Online23 Oct 2020
Print23 Oct 2020
Publication process dates
Deposited08 Apr 2021
Accepted01 Apr 2020
Output statusPublished
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).
Also part of the Theoretical Computer Science and General Issues book sub series (LNTCS, 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
LanguageEnglish
Book titleSwarm Intelligence: 12th International Conference, ANTS 2020, Barcelona, Spain, October 26–28, 2020, Proceedings
Permalink -

https://repository.mdx.ac.uk/item/894z5

Download files


Accepted author manuscript
  • 18
    total views
  • 7
    total downloads
  • 0
    views this month
  • 0
    downloads this month

Export as