Towards a Comprehensive Test Suite for Detectors of Design Patterns

被引:0
|
作者
Wegrzynowicz, Patrycja [1 ]
Stencel, Krzysztof [2 ]
机构
[1] NASK Res & Acad Comp Network, Software R&D Dept, Warsaw, Poland
[2] Warsaw Univ, Inst Informat, Warsaw, Poland
关键词
test suite; design patterns; detection;
D O I
10.1109/ASE.2009.85
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Detection of design patterns is an important part of reverse engineering. Availability of patterns provides for a better understanding of code and also makes analysis more efficient in terms of time and cost. In recent years, we have observed a continual improvement in the field of automatic detection of design patterns in source code. Existing approaches can detect a fairly broad range of design patterns, targeting both structural and behavioral aspects of patterns. However, it is not straightforward to assess and compare these approaches. There is no common ground on which to evaluate the accuracy of the detection approaches, given the existence of variants and specific code constructs used to implement a design pattern. We propose a systematic approach to constructing a comprehensive test suite for detectors of design patterns. This approach is applied to construct a test suite covering the Singleton pattern. The test suite contains many implementation variants of these patterns, along with such code constructs as method forwarding, access modifiers, and long inheritance paths. Furthermore, we use this test suite to compare three detection tools and to identify their strengths and weaknesses.
引用
收藏
页码:103 / 110
页数:8
相关论文
共 50 条
  • [1] Towards Trusted Smart Contracts: A Comprehensive Test Suite For Vulnerability Detection
    Arusoaie, Andrei
    Susan, Stefan-Claudiu
    EMPIRICAL SOFTWARE ENGINEERING, 2024, 29 (05)
  • [2] TOWARDS A COMPREHENSIVE TEST OF QUALITATIVE REASONING SKILL IN DESIGN
    Khorshidi, Maryam
    Woodward, Jay
    Shah, Jami J.
    PROCEEDINGS OF THE ASME INTERNATIONAL DESIGN ENGINEERING TECHNICAL CONFERENCES AND COMPUTERS AND INFORMATION IN ENGINEERING CONFERENCE, VOL 7, 2012, : 889 - +
  • [3] Towards execution in automatic test suite generation
    Zhao, Y.X.
    Wang, J.G.
    Wu, J.P.
    Jisuanji Yanjiu yu Fazhan/Computer Research and Development, 2001, 38 (01):
  • [4] Towards execution in automatic test suite generation
    Zhao, YX
    Wu, JP
    CHINESE JOURNAL OF ELECTRONICS, 2001, 10 (01): : 24 - 28
  • [5] Design principles in Test Suite Architecture
    Nishi, Yasuharu
    2015 IEEE EIGHTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW), 2015,
  • [6] TOWARDS A METRICS SUITE FOR OBJECT ORIENTED DESIGN
    CHIDAMBER, SR
    KEMERER, CF
    SIGPLAN NOTICES, 1991, 26 (11): : 197 - 211
  • [7] A graph based heuristic towards test suite reduction
    Harris, P., 1600, Praise Worthy Prize (07):
  • [8] Design and development of the CDE 1.0 test suite
    Orton, KL
    Ritter, PR
    HEWLETT-PACKARD JOURNAL, 1996, 47 (02): : 54 - 61
  • [9] Test suite design for code generation tools
    Stürmer, I
    Conrad, M
    18TH IEEE INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS, 2003, : 286 - 290
  • [10] Towards a Unified Process Model for Comprehensive Software Metrics Suite: An Introduction
    Mshelia, Yusuf U.
    Apeh, Simon T.
    Olaye, Edoghogho
    2019 19TH INTERNATIONAL CONFERENCE ON COMPUTATIONAL SCIENCE AND ITS APPLICATIONS (ICCSA 2019), 2019, : 52 - 56