Title
|
|
|
|
A novel approach for detecting type-IV clones in test code
|
|
Author
|
|
|
|
|
|
Abstract
|
|
|
|
The typical structure of unit test code (setup stimulate - verify - teardown) gives rise to duplicated test logic. Researchers have demonstrated the widespread use of syntactic clones in test code, yet if duplicated test code is indeed a problem, then semantic clones may be an issue as well. However, while detecting syntactic similarities can be done relatively easy, semantic similarities are more difficult to find. In this paper we present a novel way of detecting semantic clones by exploiting the unique features present in test code. We demonstrate on the Apache Commons Math Library's test suite that our approach can detect 259 semantic clones, of which only 54 were also detected by NiCad. This confirms that it is both feasible and worthwhile to investigate semantic clones in test code. |
|
|
Language
|
|
|
|
English
|
|
Source (journal)
|
|
|
|
2019 IEEE 13TH INTERNATIONAL WORKSHOP ON SOFTWARE CLONES (IWSC '19)
|
|
Source (book)
|
|
|
|
13th IEEE International Workshop on Software Clones (IWSC), FEB 24, 2019, Hangzhou, PEOPLES R CHINA
|
|
Publication
|
|
|
|
New york
:
Ieee
,
2019
|
|
ISBN
|
|
|
|
978-1-72811-805-5
978-1-72811-805-5
|
|
DOI
|
|
|
|
10.1109/IWSC.2019.8665855
|
|
Volume/pages
|
|
|
|
(2019)
, p. 8-12
|
|
ISI
|
|
|
|
000467274600002
|
|
Full text (Publisher's DOI)
|
|
|
|
|
|
Full text (publisher's version - intranet only)
|
|
|
|
|
|