AuthorsM. Carlier, C. Dubois and A. Gotlieb
EditorsJ. J. A. Brucker
TitleA First Step in the Design of a Formally Verified Constraint-Based Testing Tool: FocalTest
AfilliationSoftware Engineering, Software Engineering, Software Engineering
Project(s)The Certus Centre (SFI)
StatusPublished
Publication TypeProceedings, refereed
Year of Publication2012
Conference NameProceedings of the Tests And Proofs Conference (TAP 2012), Prague, Czech Republic
Volume7305
Pagination35-50
PublisherSpringer Berlin Heidelberg
Place PublishedBerlin Heidelberg
KeywordsConference
Abstract

Constraint-based test data generators rely on SMT or constraint solvers to automatically generate test data (e.g., Pex, Sage, Gatel, Path\-Crawler, Euclide, etc.). However, for some test data generation requests corresponding to particular testing objectives, these tools may fail to deliver the expected test data because they rather focus on efficiency rather than correction and completeness. In our work, we adopt an opposite view in the development of FocalTest, a test data generation tool for Focalize programs. The goal of the tool is to generate an MC/DC-compliant set of test data over the precondition of user-defined program properties. The development of such a correct-by-construction test data generator requires 1) to provide a formally verified translation of Focalize programs and properties into constraint systems; 2) to introduce a formally verified constraint solver able to solve those constraint systems. This paper is concerned with the first step only where we formally demonstrate with Coq the correctness of the translation of an intermediate functional language into a constraint system. This objective requires to formally define the operational semantics of the source language that features the manipulation of concrete data types via pattern-matching and function calls, constructions that are mirrored in the constraint language. Although such a semantics-oriented formalization is only a first step of a larger goal which is to provide a formally verified constraint-based testing tool, we argue that it is an important contribution to the building of more robust software testing tools.

DOI10.1007/978-3-642-30473-6\_5
Citation KeySimula.simula.1222