Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
422614 | Electronic Notes in Theoretical Computer Science | 2007 | 12 Pages |
Abstract
We propose in this paper a way to measure the coverage of a Java test suite by considering the JML specification associed to the Java program under test. This approach is based on extracting a predicate-based graph from the JML method specifications. We then measure the coverage of this latter w.r.t. nodes of the graph that are visited by the test suite. In addition, we propose to check whether the test suite satisfies classical condition coverage criteria. We also introduce a tool, to be used as precompiler for Java, that is in charge of measuring and reporting the coverage according to these criteria.
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics