FlaKat: A Machine Learning-Based Categorization Framework for Flaky Tests

Shizhe Lin, Ryan Zheng He Liu, Ladan Tahvildari
3/1/2024
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

Flaky tests can pass or fail non-deterministically, without alterations to a software system. Such tests are frequently encountered by developers and hinder the credibility of test suites. State-of-the-art research incorporates machine learning solutions into flaky test detection and achieves reasonably good accuracy. Moreover, the majority of automated flaky test repair solutions are designed for specific types of flaky tests. This research work proposes a novel categorization framework, called FlaKat, which uses machine-learning classifiers for fast and accurate prediction of the category of a given flaky test that reflects its root cause. Sampling techniques are applied to address the imbalance between flaky test categories in the International Dataset of Flaky Test (IDoFT). A new evaluation metric, called Flakiness Detection Capacity (FDC), is proposed for measuring the accuracy of classifiers from the perspective of information theory and provides proof for its effectiveness. The final FDC results are also in agreement with F1 score regarding which classifier yields the best flakiness classification.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lin2024flakat,
  title  = {FlaKat: A Machine Learning-Based Categorization Framework for Flaky Tests},
  author = {Shizhe Lin and Ryan Zheng He Liu and Ladan Tahvildari},
  year   = {2024},
  eprint = {2403.01003},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.01003v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.01003.svg)](https://codeofpaper.com/paper/2403.01003)

Discussion