Skip to content

CodeCoverageProvider

rockbruno edited this page May 9, 2020 · 1 revision

CodeCoverageProvider

Code coverage percentage. Requirements: Test logs generated by test targets that have code coverage reports enabled in the scheme.

public struct CodeCoverageProvider: InfoProvider

Inheritance

InfoProvider

Nested Type Aliases

Arguments

public typealias Arguments = Args

Initializers

init(percentageInt:)

public init(percentageInt: Int)

Properties

identifier

let identifier: String

tempFileName

let tempFileName

tempFile

var tempFile: URL

description

let description: String

percentageInt

let percentageInt: Int

Methods

extract(fromApi:args:)

public static func extract(fromApi api: SwiftInfo, args: Args?) throws -> CodeCoverageProvider

getCodeCoverageJson(api:)

public static func getCodeCoverageJson(api: SwiftInfo) throws -> [String: Any]

getCodeCoverageJson(reportFilePath:command:)

private static func getCodeCoverageJson(reportFilePath _: String, command: String) throws -> [String: Any]

getCodeCoverageXcode11JsonPath(fromLogs:)

public static func getCodeCoverageXcode11JsonPath(fromLogs logs: String) -> String?

getCodeCoverageLegacyJsonPath(fromLogs:)

public static func getCodeCoverageLegacyJsonPath(fromLogs logs: String) -> String?

getCodeCoverageJsonPath(fromLogs:regex:)

private static func getCodeCoverageJsonPath(fromLogs logs: String, regex: String) -> String?

removeTemporaryFileIfNeeded()

static func removeTemporaryFileIfNeeded()

runShell(_:)

static func runShell(_ command: String)

summary(comparingWith:args:)

public func summary(comparingWith other: CodeCoverageProvider?, args _: Args?) -> Summary

toPercentage(percentageInt:)

static func toPercentage(percentageInt: Int) -> Float
Clone this wiki locally