Proof-based Test Case Generation
Book chapter, 2016

KeYTestGen is a white-box test generator for Java methods based on KeY's program analysis and symbolic execution. KeYTestGen generates a JUnit test harness (test driver) which does not only initialize method parameters but also the global state that is defined by the (potentially private) fields of objects and classes. For example, a complex linked data structure may be created as test input. The tests can satisfy different test criteria such as branch coverage, path coverage, and MC/DC coverage. The user may also provide a specification in the Java Modeling Language (JML) from which a test oracle can be generated or which can be used as an abstraction for a loop or method call. KeYTestGen can be used either as a simple stand-alone tool not requiring expert knowledge or it can be used in an advanced way to support and complement formal verification.

Solftware Analysis

Software Verification

Testing

Test Generation

Author

Wolfgang Ahrendt

Chalmers, Computer Science and Engineering (Chalmers), Software Technology (Chalmers)

Christoph Gladisch

Karlsruhe Institute of Technology (KIT)

Mihai Herda

Karlsruhe Institute of Technology (KIT)

Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)

03029743 (ISSN) 16113349 (eISSN)

Vol. 10001 LNCS 415-451
978-3-319-49811-9 (ISBN)

Areas of Advance

Information and Communication Technology

Driving Forces

Sustainable development

Subject Categories

Computer Science

DOI

10.1007/978-3-319-49812-6_12

ISBN

978-3-319-49811-9

More information

Latest update

4/5/2022 6