Establishing Multilevel Test-to-Code Traceability Links

被引:19
|
作者
White, Robert [1 ]
Krinke, Jens [1 ]
Tan, Raymond [1 ]
机构
[1] UCL, London, England
关键词
CONTINUOUS INTEGRATION; CHALLENGES; DEPLOYMENT; DELIVERY;
D O I
10.1145/3377811.3380921
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Test-to-code traceability links model the relationships between test artefacts and code artefacts. When utilised during the development process, these links help developers to keep test code in sync with tested code, reducing the rate of test failures and missed faults. Test-to-code traceability links can also help developers to maintain an accurate mental model of the system, reducing the risk of architectural degradation when making changes. However, establishing and maintaining these links manually places an extra burden on developers and is error-prone. This paper presents TCtracer, an approach and implementation for the automatic establishment of test-to-code traceability links. Unlike existing work, TCtracer operates at both the method level and the class level, allowing us to establish links between tests and functions, as well as between test classes and tested classes. We improve over existing techniques by combining an ensemble of new and existing techniques and exploiting a synergistic flow of information between the method and class levels. An evaluation of TCtracer using four large, well-studied open source systems demonstrates that, on average, we can establish test-to-function links with a mean average precision (MAP) of 78% and test-class-to-class links with an MAP of 93%.
引用
收藏
页码:861 / 872
页数:12
相关论文
共 50 条
  • [31] DCTracVis: a system retrieving and visualizing traceability links between source code and documentation
    Xiaofan Chen
    John Hosking
    John Grundy
    Robert Amor
    Automated Software Engineering, 2018, 25 : 703 - 741
  • [32] Establishing Traceability For Flickermeters
    Ane, Charles
    Braun, Jean-Pierre
    Mester, Christian
    2018 FIRST INTERNATIONAL COLLOQUIUM ON SMART GRID METROLOGY (SMAGRIMET), 2018,
  • [33] Analysis and improvement on retrieval methods for traceability links between source code and documentation
    Lai, Guan-Hui
    Wang, Xiao-Bo
    Liu, Chao
    Tien Tzu Hsueh Pao/Acta Electronica Sinica, 2009, 37 (SUPPL.): : 22 - 30
  • [34] Towards Gamification in Software Traceability: Between Test and Code Artifacts
    Parizi, Reza Meimandi
    Kasem, Asem
    Abdullah, Azween
    2015 10TH INTERNATIONAL JOINT CONFERENCE ON SOFTWARE TECHNOLOGIES (ICSOFT), VOL 1, 2015, : 393 - 400
  • [35] Recovering Traceability Links between Requirements and Source Code Using the Configuration Management Log
    Tsuchiya, Ryosuke
    Washizaki, Hironori
    Fukazawa, Yoshiaki
    Kato, Tadahisa
    Kawakami, Masumi
    Yoshimura, Kentaro
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2015, E98D (04): : 852 - 862
  • [36] Recovering documentation-to-source-code traceability links using latent semantic indexing
    Marcus, A
    Maletic, JI
    25TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2003, : 125 - 135
  • [37] Constructing Traceability Links between Software Requirements and Source Code Based on Neural Networks
    Dai, Peng
    Yang, Li
    Wang, Yawen
    Jin, Dahai
    Gong, Yunzhan
    MATHEMATICS, 2023, 11 (02)
  • [38] ESTABLISHING THE LINKS
    POLACSEK, RA
    BECKER, G
    M D COMPUTING, 1986, 3 (04): : 7 - 7
  • [39] Maintaining traceability links between implementation-level restrictions and source code for program understanding
    Ohba, Masaru
    Gondow, Katsuhiko
    PROCEEDINGS OF THE 10TH IASTED INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND APPLICATIONS, 2006, : 20 - +
  • [40] A Higher Order Generative Framework for Weaving Traceability Links into a Code Generator for Web Application Testing
    Fraternali, Piero
    Tisi, Massimo
    WEB ENGINEERING, PROCEEDINGS, 2009, 5648 : 340 - 354