Skip to content

exKAZUu/SimpleOpenCodeCoverageFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleOpenCodeCoverageFramework

Usage

  1. Modify Java source code files for measuring coverage.
SimpleOccf.exe [--handler handler] arg1 arg2 ...
  args: Java source code files or directories
  handler: FQCN of coverage handler class
  1. Compile modified source code files linking the runtime jar file. You can use Maven dependency as follows.
<dependency>
  <groupId>net.klazz.soccf</groupId>
  <artifactId>soccf-runtime</artifactId>
  <version>0.1</version>
  <optional>true</optional>
</dependency>  
  1. After executing test (e.g. mvn test), a logging file (soccf.cov.gz) is generated. You can analyze the logging file to compute coverage values. The format of the logging file is here.