Too trivial to test? An inverse view on defect prediction to identify methods with low fault risk

Rainer Niedermayr, Tobias Röhm, Stefan Wagner

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations

Abstract

To cope with the scarce resources for testing, teams can apply defect prediction to identify fault-prone code regions. However, defect prediction tends to low precision in cross-project prediction scenarios. We take an inverse view on defect prediction and aim to identify methods that can be deferred when testing because they contain hardly any faults due to their code being "trivial". We compute code metrics and apply association rule mining to create rules for identifying methods with low fault risk (LFR) and assess our approach with six Java open-source projects containing precise fault data at the method level. Our results show that inverse defect prediction can identify approx. 32-44% of the methods of a project to have a LFR; on average, they are about six times less likely to contain a fault than other methods. Our approach identifies methods that can be treated with less priority in testing activities and is well applicable in cross-project prediction scenarios.

Original languageEnglish
Title of host publicationSoftware Engineering 2020 - Fachtagung des GI-Fachbereichs Softwaretechnik
EditorsMichael Felderer, Wilhelm Hasselbring, Rick Rabiser, Reiner Jung
PublisherGesellschaft fur Informatik (GI)
Pages137-138
Number of pages2
ISBN (Electronic)9783885796947
DOIs
StatePublished - 2020
Externally publishedYes
EventFachtagung des GI-Fachbereichs Softwaretechnik, Software Engineering 2020 - Conference of the GI Special Interest Group on Software Engineering, Software Engineering 2020 - Innsbruck, Austria
Duration: 24 Feb 202028 Feb 2020

Publication series

NameLecture Notes in Informatics (LNI), Proceedings - Series of the Gesellschaft fur Informatik (GI)
VolumeP-300
ISSN (Print)1617-5468

Conference

ConferenceFachtagung des GI-Fachbereichs Softwaretechnik, Software Engineering 2020 - Conference of the GI Special Interest Group on Software Engineering, Software Engineering 2020
Country/TerritoryAustria
CityInnsbruck
Period24/02/2028/02/20

Keywords

  • Fault risk
  • Inverse defect prediction
  • Low-fault-risk methods
  • Testing

Fingerprint

Dive into the research topics of 'Too trivial to test? An inverse view on defect prediction to identify methods with low fault risk'. Together they form a unique fingerprint.

Cite this