codeCoverageDataFileURL
Path of a generated .profdata
file suitable for processing using llvm-cov
, if enableCodeCoverage
was set in the test parameters.
- SwiftPM
- 6.0+
var codeCoverageDataFileURL: URL?
Path of a generated .profdata
file suitable for processing using llvm-cov
, if enableCodeCoverage
was set in the test parameters.
var codeCoverageDataFileURL: URL?
s13PackagePlugin0A7ManagerV10TestResultV23codeCoverageDataFileURL20FoundationEssentials0J0VSgvp
What are these?9S8AM
import PackagePlugin
struct TestResult
Represents the result of running unit tests.
struct PackageManager
Provides specialized information and services from the Swift Package Manager or an IDE that supports Swift Packages. Different plugin hosts implement the functionality in whatever way is appropriate for them, but should preserve the same semantics described here.
struct URL
A URL is a type that can potentially contain the location of a resource on a remote server, the path of a local file on disk, or even an arbitrary piece of encoded data.
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).
struct TestTarget
Represents the results of running some or all of the tests in a single test target.
var codeCoverageDataFile: Path? { get }
Path of a generated .profdata
file suitable for processing using llvm-cov
, if enableCodeCoverage
was set in the test parameters.