Package io.flowcov.camunda.util
Class CoverageReportUtil
- java.lang.Object
-
- io.flowcov.camunda.util.CoverageReportUtil
-
public class CoverageReportUtil extends java.lang.ObjectUtility for generating graphical class and method coverage reports.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTARGET_DIR_ROOTRoot directory for all coverage reports.
-
Constructor Summary
Constructors Constructor Description CoverageReportUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateClassReport(org.camunda.bpm.engine.ProcessEngine processEngine, CoverageTestRunState coverageTestRunState)Generates a coverage report for the whole test class.protected static java.lang.StringgetBpmnXml(org.camunda.bpm.engine.repository.ProcessDefinition processDefinition)Retrieves a process definitions BPMN XML.
-
-
-
Field Detail
-
TARGET_DIR_ROOT
public static final java.lang.String TARGET_DIR_ROOT
Root directory for all coverage reports.- See Also:
- Constant Field Values
-
-
Method Detail
-
createClassReport
public static void createClassReport(org.camunda.bpm.engine.ProcessEngine processEngine, CoverageTestRunState coverageTestRunState)Generates a coverage report for the whole test class. This method requires that all tests have been executed with the same resources deployed.- Parameters:
processEngine-coverageTestRunState-
-
getBpmnXml
protected static java.lang.String getBpmnXml(org.camunda.bpm.engine.repository.ProcessDefinition processDefinition) throws java.io.IOExceptionRetrieves a process definitions BPMN XML.- Parameters:
processDefinition-- Returns:
- Throws:
java.io.IOException- Thrown if the BPMN resource is not found.
-
-