TestResult
Represents the result of running unit tests.
PackageManagerProxy.swift:178struct TestResult
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (12) members.
Types
enum BuildConfiguration
Represents an overall purpose of the build, which affects such things as optimization and generation of debug symbols.
enum BuildLogVerbosity
Represents the amount of detail in a build log.
struct BuildParameters
Parameters and options to apply during a build.
struct BuildResult
Represents the results of running a build.
enum BuildSubset
Specifies a subset of products and targets of a package to build.
struct SymbolGraphOptions
Represents options for symbol graph generation.
struct SymbolGraphResult
Represents the result of symbol graph generation.
struct TestParameters
Parameters that control how the tests are run.
enum TestSubset
Specifies what tests in a package to run.
Instance members
func build(BuildSubset, parameters: BuildParameters
) throws -> BuildResult Performs a build of all or a subset of products and targets in a package.
func getSymbolGraph(for: Target, options: SymbolGraphOptions
) throws -> SymbolGraphResult Return a directory containing symbol graph files for the given target and options. If the symbol graphs need to be created or updated first, they will be. SwiftPM or an IDE may generate these symbol graph files in any way it sees fit.
func test(TestSubset, parameters: TestParameters
) throws -> TestResult Runs all or a specified subset of the unit tests of the package, after an incremental build if necessary (the same as
swift test
does).
Citizens in PackagePlugin
Types
struct TestTarget
Represents the results of running some or all of the tests in a single test target.
Instance members
var codeCoverageDataFileURL: URL?
Path of a generated
.profdata
file suitable for processing usingllvm-cov
, ifenableCodeCoverage
was set in the test parameters.var succeeded: Bool
Whether the test run succeeded or failed.
var testTargets: [TestTarget]
Results for all the test targets that were run (filtered based on the input subset passed when running the test).
Show obsolete interfaces (1)
Hide obsolete interfaces
var codeCoverageDataFile: Path?
Path of a generated
.profdata
file suitable for processing usingllvm-cov
, ifenableCodeCoverage
was set in the test parameters.