Contents

defaultMetrics

An array of default metrics the test uses to record performance.

Declaration

class var defaultMetrics: [any XCTMetric] { get }

Discussion

When you call measure(options:block:), the test uses this property to determine which metrics to record. The default is an array that contains XCTClockMetric. Subclasses of XCTestCase can override this property to change the default metrics.

See Also

Measuring Performance