kirancodes.me
To Proof Maintenance & Beyond!

Automatically Tagging the "AAA" Pattern in Unit Test Cases Using Machine Learning Models

Chenhao Wei, Lu Xiao, Tingting Yu, Xinyu Chen, Xiao Wang, Sunny Wong, Abigail Clune

Abstract

The AAA pattern, i.e. the Arrangement, Action, and Assertion, is a common and nature layout to create a test case. Following this pattern in test cases may benefit comprehension, debugging, and maintenance. The AAA structure of real-life test cases may not be explicit due to its high complexity. Manually labeling AAA statements in test cases is tedious. Thus, an automated approach for labeling AAA statements in existing test cases could benefit new developers and projects that practice collective code ownership and test driven development.

BibTeX
@inproceedings{Wei-al:ASE22,
  author    = {Chenhao Wei and
               Lu Xiao and
               Tingting Yu and
               Xinyu Chen and
               Xiao Wang and
               Sunny Wong and
               Abigail Clune},
  title     = {Automatically Tagging the {"AAA"} Pattern in Unit Test Cases Using Machine Learning Models},
  booktitle = {ASE},
  pages     = {194:1--194:3},
  publisher = {{ACM}},
  year      = {2022},
}

Related papers