import SDGSwiftPackageManager .product(name: "SDGSwiftPackageManager", package: "SDGSwift")
Type Method

codeCoverageReport(for:ignoreCoveredRegions:reportProgress:)

Returns the code coverage report for the package.

Declaration

static func codeCoverageReport(for package: PackageRepository, ignoreCoveredRegions: Bool = default, reportProgress: (_ progressReport: String) -> Void = default) -> Swift.Result<TestCoverageReport?, CoverageReportingError>

Parameters

package

The package to test.

ignoreCoveredRegions

Optional. Set to true if only coverage gaps are significant. When true, covered regions will be left out of the report, resulting in faster parsing.

reportProgress

Optional. A closure to execute for each line of output.

progressReport

A line of output.

Returns

The report, or nil if there is no code coverage information.

Linux macOS