Interface ReportProvider
- All Known Implementing Classes:
CloverReportLinker
public interface ReportProvider
Provides links and meta-data about Clover reports
-
Method Summary
Modifier and TypeMethodDescriptionReturns build results@NotNull Collection<Artifact>
Returns a list of artifacts (shared and local) containing Clover HTML report.@Nullable String
Deprecated.since 5.7 use #getCloverArtifacts() and #getCloverReportUrl(Artifact) to handle more than one report in a build@Nullable String
getCloverReportUrl
(@NotNull Artifact artifact) Returns URL of the given report artifact.@NotNull String
Deprecated.since 5.7 use #getCloverArtifacts() and #getTimestamp(Artifact) to handle more than one report in a build@NotNull String
getTimestamp
(@NotNull Artifact artifact) Deprecated.use #getCloverArtifacts() and #getTimestamp(Artifact) to handle more than one report in a buildboolean
isCloverAdgReport
(@NotNull Artifact artifact) Returnstrue
if given artifact contains Clover's HTML report in ADG style (introduced in Clover 4)boolean
isCloverReport
(@NotNull Artifact artifact) Returnstrue
if given artifact contains Clover's HTML report.
-
Method Details
-
getCloverArtifacts
Returns a list of artifacts (shared and local) containing Clover HTML report.- Returns:
- Collection<Artifact> list of reports or empty list
-
getCloverReportUrl
Deprecated.since 5.7 use #getCloverArtifacts() and #getCloverReportUrl(Artifact) to handle more than one report in a buildReturn URL of the Clover's HTML report artifact from a build. In case when build contains many Clover reports, a first found will be returned.- Returns:
- String URL to Clover report or
null
if not exists
-
getCloverReportUrl
Returns URL of the given report artifact.- Returns:
- String artifact URL or
null
if not exists
-
getTimestamp
Deprecated.since 5.7 use #getCloverArtifacts() and #getTimestamp(Artifact) to handle more than one report in a buildReturns timestamp of the Clover's HTML report artifact from a build. In case when build contains many Clover reports, a first found will be returned. If there are no Clover reports in build it returns empty string.- Returns:
- String timestamp of Clover report or "" if not found
-
getTimestamp
Deprecated.use #getCloverArtifacts() and #getTimestamp(Artifact) to handle more than one report in a buildReturns timestamp of the given report artifact.- Returns:
- String timestamp of Clover report or "" if not found
-
getBuildResultsSummary
ImmutableResultsSummary getBuildResultsSummary()Returns build results- Returns:
- ImmutableResultsSummary
-
isCloverReport
Returnstrue
if given artifact contains Clover's HTML report.- Parameters:
artifact
- artifact to check- Returns:
- boolean
-
isCloverAdgReport
Returnstrue
if given artifact contains Clover's HTML report in ADG style (introduced in Clover 4)- Parameters:
artifact
- artifact to check- Returns:
- boolean
-