The Effect of Generated Comments for Integration Tests on Code Comprehension

More Info
expand_more

Abstract

Comments play a vital role in the comprehension of source code. To aid software developers in code comprehension, tools have been designed for automatically generating comments. However, developers lack a tool that creates comments for integration tests. To further improve the process of code comprehension, a novel tool is proposed in this thesis based on TestDescriber for automatically generating comments for integration tests. For the design, the main stages in the process of generating comments are defined. An experiment is conducted to evaluate the tool with Java developers. Two programming tasks had to be performed, in which a test had to be rewritten. The results show that the generated comments from the tool can improve code comprehension.