All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.sanity4j.workflow.tool.JaCoCoRunner Maven / Gradle / Ivy

Go to download

Sanity4J was created to simplify running multiple static code analysis tools on the Java projects. It provides a single entry point to run all the selected tools and produce a consolidated report, which presents all findings in an easily accessible manner.

There is a newer version: 1.8.2
Show newest version
package com.github.sanity4j.workflow.tool;

import com.github.sanity4j.util.Tool;

/**
 * JaCoCoRunner - work unit which produces a JaCoCo report.
 * 
 * Note: JaCoCo CLI is coming in a pending pull request - https://github.com/jacoco/jacoco/pull/525 . For now, we use the API directly
* 
 * @author Yiannis Paschalidis
 * @since Sanity4J 1.8
 */
public class JaCoCoRunner extends AbstractToolRunner
{
   /**
    * Creates a JaCoCoRunner.
    */
   public JaCoCoRunner()
   {
      super(Tool.JACOCO);
   }
   
   /**
    * Future point to run JaCoco. Does nothing for now.
    * @param commandLine the JaCoCo command line.
    */
   @Override
   protected void runTool(final String commandLine)
   {
      // TODO: Does nothing
      // TODO: Hack - pass the config to the reader.
      JaCoCoResultReader.setConfig(getConfig());
   }
   
   /**
    * @return the description of this WorkUnit.
    */
   @Override
   public String getDescription()
   {
       return "Running JaCoco report";
   }   
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy