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))