arrow
Return

Generating Unit Tests for Documentation

delete2022-09-01
delete9
delete
OA
AI
M
Mathieu Nassif *
A
Alexa Hernandez
A
Ashvitha Sridharan
M
Martin P. Robillard
DOI:10.1109/TSE.2021.3087087delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Software projects capture redundant information in various kinds of artifacts, as specifications from the source code are also tested and documented. Such redundancy provides an opportunity to reduce development effort by supporting the joint generation of different types of artifacts. We introduce a tool-supported technique, called DScribe, that allows developers to combine unit test and documentation templates, and to invoke these templates to generate documentation and unit tests. DScribe supports the detection and replacement of outdated documentation, and the use of templates can encourage extensive test suites with a consistent style. Our evaluation of 835 specifications revealed that 85 percent were not tested or correctly documented, and DScribe could be used to automatically generate 97 percent of the tests and documentation. An additional study revealed that tests generated by DScribe are more focused and readable than those written by human testers or generated by state-of-the-art automated techniques.
Keywords:
Documentation
Testing
Skeleton
Java
Software
Redundancy
Libraries
Code documentation
testing
testing tools
test generation
maintainability
specification management
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.9K
Citations:
1.1W

Organization

M
McGill University
Scholars:
5.5W
Papers: 4.9W
Citations: 7.0W
Cited Papers

Cited Papers

Phosphoproteomics and Proteomics Reveal Metabolism as a Key Node in LPS-Induced Acute Inflammation in RAW264.7
err2020-06-02
err0
PREAI
errYu Luo; Qing Jiang; Zhengwen Zhu; Haseeb Sattar; Jiasi Wu; Wenge Huang; Siyu Su; Yusheng Liang; Ping Wang; Xianli Meng
errShare
errSave
Investigation of coal fueled chemical looping combustion using Fe3O4 as oxygen carrier: Influence of variables
err2010-05-16
err0
PREAI
errXiaoyan Sun; Wenguo Xiang; Sha Wang; Wendong Tian; Xiang Xu; Yanji Xu; Yunhan Xiao
errShare
errSave
The geology of the Kidd Creek Mine
err1975-02-01
err0
PREAI
errR. R. Walker; A. Matulich; A. C. Amos; J. J. Watkins; G. W. Mannard
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
Mild hypothermia therapy for patients with severe brain injury
err2002-09-01
err0
PREAI
errRoman Gal; Ivan Cundrle; Iveta Zimova; Martin Smrcka
errShare
errSave
researcher View more