import WorkspaceConfiguration .product(name: "WorkspaceConfiguration", package: "Workspace")
Instance Property

exemptionTokens

The set of active test coverage exemption tokens.

Declaration

var exemptionTokens: Set<TestCoverageExemptionToken> { get set }

Discussion

The default tokens, taken straight from the source code, are:

TestCoverageExemptionToken("@exempt(from: tests)", scope: .sameLine), TestCoverageExemptionToken("assert", scope: .sameLine), TestCoverageExemptionToken("assertionFailure", scope: .previousLine), TestCoverageExemptionToken("precondition", scope: .sameLine), TestCoverageExemptionToken("preconditionFailure", scope: .previousLine), TestCoverageExemptionToken("fatalError", scope: .previousLine), TestCoverageExemptionToken("@unknown", scope: .sameLine), TestCoverageExemptionToken("primitiveMethod", scope: .previousLine), TestCoverageExemptionToken("unreachable", scope: .previousLine), TestCoverageExemptionToken("test", scope: .sameLine), TestCoverageExemptionToken("fail", scope: .sameLine),
macOS CentOS Ubuntu Amazon Linux