作者
August Shi, Alex Gyori, Owolabi Legunsen, Darko Marinov
发表日期
2016/4/11
研讨会论文
2016 IEEE international conference on software testing, verification and validation (ICST)
页码范围
80-90
出版商
IEEE
简介
Some commonly used methods have nondeterministicspecifications, e.g., iterating through a set canreturn the elements in any order. However, non-deterministicspecifications typically have deterministic implementations, e.g.,iterating through two sets constructed in the same way mayreturn their elements in the same order. We use the termADINS code to refer to code that Assumes a DeterministicImplementation of a method with a Non-deterministic Specification. Such ADINS code can behave unexpectedly whenthe implementation changes, even if the specification remainsthe same. Further, ADINS code can lead to flaky tests -- teststhat pass or fail seemingly non-deterministically. We present a simple technique, called NONDEX, for detectingflaky tests due to ADINS code. We implemented NONDEX forJava: we found 31 methods with non-deterministic specificationsin the Java Standard Library, manually built non …
学术搜索中的文章
A Shi, A Gyori, O Legunsen, D Marinov - 2016 IEEE international conference on software testing …, 2016