Klasse CoverageReportAdapter
java.lang.Object
io.jenkins.plugins.coverage.adapter.CoverageAdapter
io.jenkins.plugins.coverage.adapter.CoverageReportAdapter
- Alle implementierten Schnittstellen:
ExtensionPoint
,Describable<CoverageAdapter>
,Serializable
- Bekannte direkte Unterklassen:
JSONCoverageReportAdapter
,XMLCoverageReportAdapter
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract Document
convert report to standard format report, and return the DOM document representation.getPath()
Getter for property 'path'.GetCoverageResult
from report file.Getter for thresholds.boolean
protected abstract CoverageResult
parseToResult
(Document document, String reportName) parse report document toCoverageResult
.final void
performCoveragePlugin
(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Perform publish coverage reports step with the adapter called this method.final void
performCoveragePlugin
(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener, DefaultSourceFileResolver sourceFileResolver) Perform publish coverage reports step with the adapter called this method.void
setMergeToOneReport
(boolean mergeToOneReport) void
setThresholds
(List<Threshold> thresholds) Setter for thresholds.Von Klasse geerbte Methoden io.jenkins.plugins.coverage.adapter.CoverageAdapter
getDescriptor
-
Konstruktordetails
-
CoverageReportAdapter
- Parameter:
path
- Ant-style path of report files.
-
-
Methodendetails
-
setMergeToOneReport
@DataBoundSetter public void setMergeToOneReport(boolean mergeToOneReport) -
isMergeToOneReport
public boolean isMergeToOneReport() -
getResult
GetCoverageResult
from report file.- Parameter:
report
- report file- Gibt zurück:
- CoverageResult
- Löst aus:
CoverageException
- cannot convert report file to CoverageResult
-
convert
convert report to standard format report, and return the DOM document representation.- Parameter:
source
- report file- Gibt zurück:
Document
representation of standard format report- Löst aus:
CoverageException
-
parseToResult
@CheckForNull protected abstract CoverageResult parseToResult(Document document, String reportName) throws CoverageException parse report document toCoverageResult
.- Parameter:
document
- document be parsereportName
- report name- Gibt zurück:
- CoverageResult
- Löst aus:
CoverageException
-
getThresholds
Getter for thresholds.- Gibt zurück:
- thresholds
- Siehe auch:
-
setThresholds
Setter for thresholds.- Parameter:
thresholds
- value to set for thresholds
-
getPath
Getter for property 'path'.- Gibt zurück:
- value for property 'path'
-
performCoveragePlugin
public final void performCoveragePlugin(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedExceptionPerform publish coverage reports step with the adapter called this method.- Parameter:
run
- a build this is running as a part ofworkspace
- a workspace to use for any file operationslauncher
- a way to start processeslistener
- a place to send output- Löst aus:
InterruptedException
- if the step is interruptedIOException
- if something goes wrong; useAbortException
for a polite error
-
performCoveragePlugin
public final void performCoveragePlugin(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener, DefaultSourceFileResolver sourceFileResolver) throws IOException, InterruptedExceptionPerform publish coverage reports step with the adapter called this method.- Parameter:
run
- a build this is running as a part ofworkspace
- a workspace to use for any file operationslauncher
- a way to start processeslistener
- a place to send outputsourceFileResolver
- source file resolver- Löst aus:
InterruptedException
- if the step is interruptedIOException
- if something goes wrong; useAbortException
for a polite error
-