Lune

ISSTA2021Top-tier venue

Empirically evaluating readily available information for regression test optimization in continuous integration

Daniel Elsner, Florian Hauer, Alexander Pretschner, Silke Reimer

Abstract

Regression test selection (RTS) and prioritization (RTP) techniques aim to reduce testing efforts and developer feedback time after a change to the code base. Using various information sources, including test traces, build dependencies, version control data, and test histories, they have been shown to be effective. However, not all of these sources are guaranteed to be available and accessible for arbitrary continuous integration (CI) environments. In contrast, metadata from version control systems (VCSs) and CI systems are readily available and inexpensive. Yet, corresponding RTP and RTS techniques are scattered across research and often only evaluated on synthetic faults or in a specific industrial context. It is cumbersome for practitioners to identify insights that apply to their context, let alone to calibrate associated parameters for maximum cost-effectiveness. This paper consolidates existing work on RTP and unsafe RTS into an actionable methodology to build and evaluate such approaches that exclusively rely on CI and VCS metadata. To investigate how these approaches from prior research compare in heterogeneous settings, we apply the methodology in a large-scale empirical study on a set of 23 projects covering 37,000 CI logs and 76,000 VCS commits. We find that these approaches significantly outperform established RTP baselines and, while still triggering 90% of the failures, we show that practitioners can expect to save on average 84% of test execution time for unsafe RTS. We also find that it can be beneficial to limit training data, features from test history work better than change-based features, and, somewhat surprisingly, simple and well-known heuristics often outperform complex machine-learned models.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Reducing Test Runtime by Transforming Test Fixtures cites Evolution-aware detection of order-dependent flaky tests
  • Reducing Test Runtime by Transforming Test Fixtures cites Empirically revisiting and enhancing IR-based test-case prioritization
  • Reducing Test Runtime by Transforming Test Fixtures cites More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
  • Evolution-aware detection of order-dependent flaky tests cites Dependent-test-aware regression testing techniques
  • Revisiting Test-Case Prioritization on Long-Running Test Suites cites Establishing multilevel test-to-code traceability links
  • Revisiting Test-Case Prioritization on Long-Running Test Suites cites Empirically revisiting and enhancing IR-based test-case prioritization
  • Revisiting Test-Case Prioritization on Long-Running Test Suites cites Dependent-test-aware regression testing techniques
  • Revisiting Test-Case Prioritization on Long-Running Test Suites cites Learning-to-rank vs ranking-to-learn: strategies for regression testing in continuous integration
  • More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes cites Learning-to-rank vs ranking-to-learn: strategies for regression testing in continuous integration
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. More Precise Regression Test Selection via Reasoning about Semantics-Modifying ChangesYu Liu, Jiyang Zhang, Pengyu Nie, Milos Gligoric et al.ISSTA 2023 · 19 citations
  2. Evolution-aware detection of order-dependent flaky testsChengpeng Li, August ShiISSTA 2022 · 12 citations
  3. Test Selection for Unified Regression TestingShuai Wang, Xinyu Lian, Darko Marinov, Tianyin XuICSE 2023 · 9 citations
  4. Revisiting Test-Case Prioritization on Long-Running Test SuitesRunxiang Cheng, Shuai Wang, Reyhaneh Jabbarvand, Darko MarinovISSTA 2024 · 2 citations
  5. Reducing Test Runtime by Transforming Test FixturesChengpeng Li, Abdelrahman Baz, August ShiASE 2024 · 1 citation

Builds on5

  1. Learning-to-rank vs ranking-to-learn: strategies for regression testing in continuous integrationAntonia Bertolino, Antonio Guerriero, Breno Miranda, Roberto Pietrantuono et al.ICSE 2020 · 81 citations
  2. Empirically revisiting and enhancing IR-based test-case prioritizationQianyang Peng, August Shi, Lingming ZhangISSTA 2020 · 49 citations
  3. Dependent-test-aware regression testing techniquesWing Lam, August Shi, Reed Oei, Sai Zhang et al.ISSTA 2020 · 44 citations
  4. Establishing multilevel test-to-code traceability linksRobert White, Jens Krinke, Raymond TanICSE 2020 · 37 citations
  5. A cost-efficient approach to building in continuous integrationXianhao Jin, Francisco ServantICSE 2020 · 34 citations

Related papers

  1. Enhancing Genetic Improvement of Software with Regression Test SelectionGiovani Guizzo, Justyna Petke, Federica Sarro, Mark HarmanICSE 2021 · 21 citations
  2. Continuous test suite failure predictionCong Pan, Michael PradelISSTA 2021 · 22 citations
  3. Test-case prioritization for configuration testingRunxiang Cheng, Lingming Zhang, Darko Marinov, Tianyin XuISSTA 2021 · 34 citations
  4. What helped, and what did not? An Evaluation of the Strategies to Improve Continuous IntegrationXianhao Jin, Francisco ServantICSE 2021 · 26 citations
  5. BUILDFAST: History-Aware Build Outcome Prediction for Fast Feedback and Reduced Cost in Continuous IntegrationBihuan Chen, Linlin Chen, Chen Zhang, Xin PengASE 2020 · 32 citations
Dusk over the sea between two cliffs drawn in fine vertical lines