Aspect
enum Aspect
Represents the type of value what you can assert for.
The following example makes an assertion for the average(maximum:)
of the time a code takes to run.
measure {
let _ = (1..<1000).reduce(0, +)
}
XCTAssertMetric(.clock, .timeMonotonic, .average(maximum: 0.001))
-
Represents the average maximum of the collected
measurements
.Declaration
Swift
case average(maximum: Double)
-
Represents the relative standard deviation of the collected
measurements
.Declaration
Swift
case relativeStandardDeviation(maximum: Double)