public class CoverageManager extends Object implements org.mule.munit.plugins.coverage.server.CoverageLocationsAccumulator
| Modifier and Type | Field and Description |
|---|---|
protected Set<org.mule.munit.plugins.coverage.core.model.CoverageComponentLocation> |
allLocations |
protected org.mule.munit.plugins.coverage.server.CoverageServer |
coverageServer |
protected Set<org.mule.munit.plugins.coverage.core.model.CoverageComponentLocation> |
coveredLocations |
protected Set<String> |
ignoreFiles |
protected Set<String> |
ignoreFlows |
protected Set<String> |
suitePaths |
| Constructor and Description |
|---|
CoverageManager(Boolean randomizeCoveragePort,
Integer serverPort,
Boolean shouldRunCoverage,
Set<String> suitePaths) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulateCoverageLocations(org.mule.munit.plugins.coverage.server.CoverageLocations coverageLocations) |
Optional<org.mule.munit.plugins.coverage.report.model.ApplicationCoverageReport> |
generateCoverageReport()
Generates the coverage report based on the accumulated covered locations.
|
protected org.mule.munit.plugins.coverage.report.ApplicationCoverageReportBuilder |
getApplicationCoverageReportBuilder() |
void |
setIgnoreFiles(Set<String> ignoreFiles)
Defines the files to be ignored for the purposes of coverage calculation
|
void |
setIgnoreFlows(Set<String> ignoreFlows)
Defines the flows to be ignored for the purposes of coverage calculation
|
boolean |
shouldCalculateCoverage() |
void |
startCoverageServer()
Starts the
CoverageServer |
void |
stopCoverageServer()
Stops the
CoverageServer |
protected org.mule.munit.plugins.coverage.server.CoverageServer coverageServer
protected Set<org.mule.munit.plugins.coverage.core.model.CoverageComponentLocation> allLocations
protected Set<org.mule.munit.plugins.coverage.core.model.CoverageComponentLocation> coveredLocations
public void setIgnoreFlows(Set<String> ignoreFlows)
ignoreFlows - a set of flow names to be ignoredpublic void setIgnoreFiles(Set<String> ignoreFiles)
ignoreFiles - a set of file paths to be ignoredpublic boolean shouldCalculateCoverage()
public void startCoverageServer()
CoverageServerpublic void stopCoverageServer()
CoverageServerpublic void accumulateCoverageLocations(org.mule.munit.plugins.coverage.server.CoverageLocations coverageLocations)
accumulateCoverageLocations in interface org.mule.munit.plugins.coverage.server.CoverageLocationsAccumulatorpublic Optional<org.mule.munit.plugins.coverage.report.model.ApplicationCoverageReport> generateCoverageReport()
ApplicationCoverageReportprotected org.mule.munit.plugins.coverage.report.ApplicationCoverageReportBuilder getApplicationCoverageReportBuilder()
Copyright © 2018. All rights reserved.