Method and apparatus for test coverage analysis
AssigneeSiemens Aktiengesellschaft
InventorsSergey Pavlovich Sobolev, Sergey Valerievich Vinogradov
Life of this patent
Estimating the term…
Abstract
A method provides for a way to test coverage data used in testing small computing platforms by assigning unique signatures to each node in the control flow graph and embedding control function calls. Signatures are embedded into the program during compilation time using the custom parser. When the program is executed the “exercised” signatures sequence is checked for correctness and used for deriving test coverage metric. This metric is used for improving unit and black-box tests. Thus, a way to collect the path-based test coverage with minimal memory and code/size impact on target system is provided.
Claims12
A method for conducting test coverage analysis comprising:
- generating an enhanced source code instrumentation, wherein an instrumented code and a signature tree are generated during a compile time, the instrumented code including send signatures and the signature tree including a database of syntactically correct software paths;
- and
- processing the send signatures during a runtime, wherein a target application including the instrumented code executes and sends the processed send signatures to a host system where the processed send signatures are used in connection with the signature tree to analyze code coverage in a control flow graph.
An apparatus for conducting test coverage analysis, comprising:
- a source code parser stored in non-transitory computer-readable media and programmed to generate an enhanced source code instrumentation including an instrumented code and a signature tree during a compile time, the instrumented code including send signatures, and the signature tree including a database of syntactically correct software paths;
- a compiler stored in non-transitory computer-readable media and programmed to translate the instrumented code into an instrumented binary code for execution by a target system including the instrumented code to generate executed send signatures;
- and
- an analyzer stored in non-transitory computer-readable media on a host system and programmed to, during a runtime, receive the executed send signatures from the target system and analyze code coverage in a control flow graph using the received executed send signatures in connection with the signature tree from the source code parser.
A system including a computer program product for conducting test coverage analysis, the computer program produce including instructions stored in non-transitory machine-readable media and executable by at least one processor to:
- generate an enhanced source code instrumentation, wherein an instrumented code and a signature tree are generated during a compile time, the instrumented code including send signatures and the signature tree including a database of syntactically correct software paths;
- and
- process the send signatures during a runtime, wherein a target application including the instrumented code executes and sends the processed send signatures to a host system where the processed send signatures are used in connection with the signature tree to analyze code coverage in a control flow graph.
Dependencies are inferred from the claim text.