com.github.sanity4j.workflow.tool.JaCoCoRunner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sanity4j Show documentation
Show all versions of sanity4j Show documentation
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.
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