Skip to main content
QUICK REVIEW

[Paper Review] Automated Test Cases Prioritization for Self-driving Cars in Virtual Environments.

Christian Birchler, Sajad Khatiri|arXiv (Cornell University)|Jul 20, 2021
Software Testing and Debugging TechniquesComputer Science58 references5 citations
TL;DR

SDC-Prioritizer is a meta-heuristic test case prioritization framework for self-driving cars that ranks virtual tests based on static road features—without requiring prior execution data—using diversity metrics. It detects twice as many safety-critical failures within the same time budget compared to random or greedy baselines, with only 0.34% overhead in test execution cost.

ABSTRACT

Testing with simulation environments helps to identify critical failing scenarios emerging autonomous systems such as self-driving cars (SDCs) and are safer than in-field operational tests. However, these tests are very expensive and are too many to be run frequently within limited time constraints. In this paper, we investigate test case prioritization techniques to increase the ability to detect SDC regression faults with virtual tests earlier. Our approach, called SDC-Prioritizer, prioritizes virtual tests for SDCs according to static features of the roads used within the driving scenarios. These features are collected without running the tests and do not require past execution results. SDC-Prioritizer utilizes meta-heuristics to prioritize the test cases using diversity metrics (black-box heuristics) computed on these static features. Our empirical study conducted in the SDC domain shows that SDC-Prioritizer doubles the number of safety-critical failures that virtual tests can detect at the same level of execution time compared to baselines: random and greedy-based test case orderings. Furthermore, this meta-heuristic search performs statistically better than both baselines in terms of detecting safety-critical failures. SDC-Prioritizer effectively prioritize test cases for SDCs with a large improvement in fault detection while its overhead (up to 0.34% of the test execution cost) is negligible.

Motivation & Objective

  • To address the challenge of high cost and scale in testing self-driving cars (SDCs) using virtual environments.
  • To improve early detection of safety-critical regression faults in SDCs during simulation testing.
  • To develop a test case prioritization technique that relies solely on static road features, avoiding dependence on historical execution results.
  • To minimize testing overhead while maximizing fault detection efficiency in time-constrained environments.
  • To evaluate the effectiveness of meta-heuristic search strategies using diversity metrics on static road features for test prioritization.

Proposed method

  • SDC-Prioritizer extracts static road features (e.g., road type, curvature, lane count) from driving scenarios without executing the tests.
  • It computes diversity metrics—black-box heuristics—based on these static features to estimate test case coverage and variation.
  • A meta-heuristic search algorithm (e.g., genetic algorithm or simulated annealing) is employed to rank test cases by their potential to detect safety-critical faults.
  • The prioritization strategy focuses on maximizing fault detection rate early in the test suite execution.
  • The method is designed to be lightweight, with computational overhead measured at up to 0.34% of total test execution cost.
  • The approach is evaluated in a real-world SDC simulation environment using a representative set of test cases.

Experimental results

Research questions

  • RQ1Can test case prioritization based on static road features improve early detection of safety-critical failures in SDC simulations?
  • RQ2How does SDC-Prioritizer compare to random and greedy test ordering strategies in terms of fault detection effectiveness?
  • RQ3What is the performance overhead of SDC-Prioritizer in terms of test execution cost?
  • RQ4Does the use of meta-heuristic search with diversity metrics on static features lead to statistically significant improvements in fault detection?
  • RQ5Can static features alone, without execution history, effectively guide test prioritization in SDC testing?

Key findings

  • SDC-Prioritizer detects twice as many safety-critical failures within the same time budget compared to random test ordering.
  • It also outperforms greedy-based test ordering in detecting safety-critical failures, with statistically significant improvement.
  • The method achieves this improvement with a negligible computational overhead of up to 0.34% of the total test execution cost.
  • The use of static road features and diversity metrics enables effective prioritization without requiring past execution results.
  • The meta-heuristic search strategy effectively explores the test suite space to prioritize high-impact test cases early.
  • Empirical evaluation confirms that static feature-based prioritization is both scalable and effective for SDC virtual testing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.