Created
February 21, 2020 08:33
-
-
Save marslin1220/07b8a4d43dd3d2ba065123217ad8474b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. | |
@available(iOS 13.0, *) | |
func testMeasureSPFCascadeScrollingAsAnXtraUser() { | |
let options = XCTMeasureOptions() | |
options.invocationOptions = [.manuallyStart, .manuallyStop] //< 2. | |
// 3. | |
measure(metrics: [SlowFrameMetric()], options: options) { | |
app.launch() | |
// do some stuff.. | |
// 4. | |
startMeasuring() | |
// interact with the app, like scrolling or swiping | |
stopMeasuring() | |
// do some other stuff.. | |
app.terminate() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment