Towards Better Test Coverage: Merging Unit Tests for Autonomous Systems
Josefine Graebener, Apurva Badithela, Richard M. Murray

TL;DR
This paper introduces a formal framework for merging unit tests in autonomous systems, enabling more efficient testing by combining requirements and guiding test policy synthesis with guarantees.
Contribution
It develops a formalism for merging unit test specifications using contract-based theory, along with a scalable algorithm for synthesizing test policies that satisfy combined requirements.
Findings
Merging tests reduces the number of test executions needed for coverage.
The framework guarantees the satisfaction of combined test specifications.
Application to autonomous driving examples demonstrates effectiveness.
Abstract
We present a framework for merging unit tests for autonomous systems. Typically, it is intractable to test an autonomous system for every scenario in its operating environment. The question of whether it is possible to design a single test for multiple requirements of the system motivates this work. First, we formally define three attributes of a test: a test specification that characterizes behaviors observed in a test execution, a test environment, and a test policy. Using the merge operator from contract-based design theory, we provide a formalism to construct a merged test specification from two unit test specifications. Temporal constraints on the merged test specification guarantee that non-trivial satisfaction of both unit test specifications is necessary for a successful merged test execution. We assume that the test environment remains the same across the unit tests and the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Reinforcement Learning in Robotics · Formal Methods in Verification
