Litcius/Paper detail

TCTracer: Establishing test-to-code traceability links using dynamic and static techniques

Robert White, Jens Krinke

2022Empirical Software Engineering17 citationsDOIOpen Access PDF

Abstract

Abstract 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 that utilise both dynamic and static information and exploiting a synergistic flow of information between the method and class levels. An evaluation of TCTracer using five large, well-studied open source systems demonstrates that, on average, we can establish test-to-function links with a mean average precision (MAP) of 85% and test-class-to-class links with an MAP of 92%.

Topics & Concepts

TraceabilityComputer scienceCode coverageTest suiteCode (set theory)syncTest caseClass (philosophy)Test (biology)Source codeProcess (computing)Test Management ApproachSoftware engineeringReliability engineeringProgramming languageEngineeringSoftwareSoftware developmentArtificial intelligenceMachine learningSoftware constructionChannel (broadcasting)Set (abstract data type)Regression analysisBiologyComputer networkPaleontologySoftware Engineering ResearchSoftware Testing and Debugging TechniquesSoftware Reliability and Analysis Research