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

Ernsting Marko, Majchrzak, Tim A., Kuchen Herbert

Forschungsartikel in Sammelband (Konferenz) | Peer reviewed

Zusammenfassung

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 zur Publikation

BuchtitelFunctional and (Constraint) Logic Programming
StatusVeröffentlicht
Veröffentlichungsjahr2012
Sprache, in der die Publikation verfasst istEnglisch
Konferenz21st International Workshop on Functional and (Constraint) Logic Programming, Nagoya, Japan
Stichwörtertest-case generation; Java; symbolic execution; constraint solving; simplex algorithm

Autor*innen der Universität Münster

Kuchen, Herbert
Majchrzak, Tim Alexander

Projekte, aus denen die Publikation entstanden ist

Laufzeit: 01.09.2008 - 30.10.2010
Gefördert durch: Wirtschaft
Art des Projekts: Gefördertes Einzelprojekt
Laufzeit: seit 01.11.2003
Art des Projekts: Eigenmittelprojekt