Test Case Generation and Dynamic Mixed-Integer Linear Arithmetic Constraint Solving

Ernsting Marko, Majchrzak, Tim A., Kuchen Herbert

Research article in edited proceedings (conference) | Peer reviewed

Abstract

Manually generating test cases for unit tests is a tedious task, especially when highcode coverage is desired. We developed the tool Muggl, which generates test cases basedon symbolic execution and constraint solving. The solution of constraints for this purposeis by no means a trivial task and greatly attributes to the total runtime. Therefore, we developed a solver for linear constraints adapted to the special needs of Muggl. It takes into account the particularities of constraint retrieval through symbolic execution. Specificallyt, it is capable of incremental addition and backtracking of constraints. Our paper introduces the topic and gives an overview of related work. Based on the problems discovered in other solvers, the distinctive features of our dynamic mixed-integer linear arithmetic (MILA) are introduced. We focus on adding and removing constraints and handling rounding errors that occur when test cases are generated. The evaluation results demonstrate the feasibility of our approach.

Details about the publication

Book titleFunctional and (Constraint) Logic Programming
StatusPublished
Release year2012
Language in which the publication is writtenEnglish
Conference21st International Workshop on Functional and (Constraint) Logic Programming, Nagoya, Japan
Keywordstest-case generation; Java; symbolic execution; constraint solving; simplex algorithm

Authors from the University of Münster

Kuchen, Herbert
Majchrzak, Tim Alexander

Projects the publication originates from

Duration: 01/09/2008 - 30/10/2010
Funded by: Wirtschaft
Type of project: Individual project
Duration: since 01/11/2003
Type of project: Own resources project