Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Quantifying the impact of flaky test noise on supervised machine learning-based test case prioritization in continuous integration environments
Blekinge Institute of Technology, Faculty of Computing, Department of Software Engineering.
Blekinge Institute of Technology, Faculty of Computing, Department of Software Engineering.
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Background. Supervised machine learning (ML) is increasingly used for test case prioritization (TCP) in continuous integration (CI). These techniques rely on historical test results, but flaky tests can produce unreliable verdicts and reduce the quality of the training data. Although previous studies have examined flaky tests and test prioritization separately, the effect of flaky-test noise on supervised ML-based TCP has not been well studied.

Objectives. This thesis investigates how increasing levels of simulated flaky test noise affect supervised ML-based TCP, identifies the first observed noise levels where the mean effectiveness of these techniques reaches or falls below the non-ML baselines, and determines which supervised technique is most robust to noise.

Methods. A controlled experiment was conducted using 24 open-source Java projects from the TCP-CI benchmark. Noise was added to historical training verdicts at levels from 0% to 50%. Four supervised techniques (Random Forest, XGBoost, LightGBM, and Naive Bayes) were compared with three non-ML baselines using APFDc as the primary measure and APFD as a secondary measure.

Results. Random Forest, XGBoost, and LightGBM showed significant performance reductions at the first tested non-zero noise level of 5%. Naive Bayes was less sensitive to noise, with significant reductions appearing only at higher noise levels. At 50% noise, performance decreased by 42.26% for Random Forest, 43.01% for XGBoost, 39.61% for LightGBM, and 12.76% for Naive Bayes. Random Forest performed best with clean data, while among the four supervised techniques, NaiveBayes was the most robust under high noise according to the APFDc criterion used in this study. Against LatestFail, Random Forest and XGBoost reached their first observed crossover at 5% noise under both APFDc and APFD. LightGBM was already below LatestFail under the clean APFDc condition but crossed it at 5% under APFD, while Naive Bayes was already below LatestFail under the clean conditionfor both metrics.

Conclusion. The results show that unreliable historical test verdicts can significantly reduce the effectiveness of supervised ML-based TCP. The technique that performs best with clean data may not be the most robust under noisy conditions. Therefore, the quality of historical test data should be considered alongside the choice of ML algorithm when applying ML-based TCP in CI environments.

Place, publisher, year, edition, pages
2026. , p. 61
Keywords [en]
Supervised ML-based TCP, Continuous Integration, Flaky Tests, Empirical Software Engineering.
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:bth-30687OAI: oai:DiVA.org:bth-30687DiVA, id: diva2:2114319
Subject / course
PA2534 Master's Thesis (120 credits) in Software Engineering
Educational program
PAADA Master Qualification Plan in Software Engineering 120,0 hp
Supervisors
Available from: 2026-11-02 Created: 2026-11-01 Last updated: 2026-11-02Bibliographically approved

Open Access in DiVA

fulltext(1520 kB)0 downloads
File information
File name FULLTEXT01.pdfFile size 1520 kBChecksum SHA-512
8bc88b238f315bbf97856bed111738de3eb2337d76c75f3ac5fb9dc2a3b9a2a872e8f77dcaeda047a9814c8e0f3fe3f8e72d2e4fb854c3e177643de233cb2319
Type fulltextMimetype application/pdf

By organisation
Department of Software Engineering
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 4 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf