作者
Arianna Blasi, Alberto Goffi, Konstantin Kuznetsov, Alessandra Gorla, Michael D Ernst, Mauro Pezzè, Sergio Delgado Castellanos
发表日期
2018/7/12
图书
Proceedings of the 27th ACM SIGSOFT international symposium on software testing and analysis
页码范围
242-253
简介
Procedure specifications are useful in many software development tasks. As one example, in automatic test case generation they can guide testing, act as test oracles able to reveal bugs, and identify illegal inputs. Whereas formal specifications are seldom available in practice, it is standard practice for developers to document their code with semi-structured comments. These comments express the procedure specification with a mix of predefined tags and natural language. This paper presents Jdoctor, an approach that combines pattern, lexical, and semantic matching to translate Javadoc comments into executable procedure specifications written as Java expressions. In an empirical evaluation, Jdoctor achieved precision of 92% and recall of 83% in translating Javadoc into procedure specifications. We also supplied the Jdoctor-derived specifications to an automated test case generation tool, Randoop. The …
引用总数
20182019202020212022202320242111316253216
学术搜索中的文章
A Blasi, A Goffi, K Kuznetsov, A Gorla, MD Ernst… - Proceedings of the 27th ACM SIGSOFT international …, 2018