@inproceedings{b704300b69cc4e89b08ce00ddb98a8a8,
title = "JTestMigBench and JTestMigTax: A benchmark and taxonomy for unit test migration",
abstract = "Unit tests play a critical role in improving software quality. However, writing effective unit tests from scratch is difficult and tedious. One way to reduce this difficulty is to recommend existing tests of semantically similar functions. However, modifying the recommended tests manually might still be difficult and tedious. For example, developers have to understand various code elements in the recommended tests to accurately replace them with semantically similar code elements from the target application. One way to mitigate the issue is by developing a test migration or reuse technique that could automatically transform the code elements in the recommended tests and migrate them to the target application. However, to develop such a technique, we first need to identify what types of code transformations are required to successfully migrate the recommended tests. Therefore, in this paper, we first recruit two external participants to create JTestMigBench, a benchmark of 510 manually migrated JUnit tests for 186 methods from five popular libraries. We then analyze the code changes in the migrated tests to create JTestMigTax, a taxonomy of test code transformation patterns. Our contributions provide the necessary foundations to develop automated unit test migration or reuse techniques.",
keywords = "benchmark, code transformation, reuse, taxonomy, transplantation, unit test migration",
author = "Jha, {Ajay Kumar} and Mohayeminul Islam and Sarah Nadi",
note = "Publisher Copyright: {\textcopyright} 2023 IEEE.; 30th IEEE International Conference on Software Analysis, Evolution and Reengineering, SANER 2023 ; Conference date: 21-03-2023 Through 24-03-2023",
year = "2023",
doi = "10.1109/SANER56733.2023.00077",
language = "English (US)",
series = "Proceedings - 2023 IEEE International Conference on Software Analysis, Evolution and Reengineering, SANER 2023",
publisher = "Institute of Electrical and Electronics Engineers Inc.",
pages = "713--717",
editor = "Tao Zhang and Xin Xia and Nicole Novielli",
booktitle = "Proceedings - 2023 IEEE International Conference on Software Analysis, Evolution and Reengineering, SANER 2023",
}