Add launch performance measurement to UI test

This commit is contained in:
1024jp 2022-01-12 11:56:56 +09:00
parent e29739882e
commit a11471f7b1

View File

@ -8,7 +8,7 @@
// //
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// //
// © 2018-2020 1024jp // © 2018-2022 1024jp
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
@ -71,4 +71,13 @@ final class UITests: XCTestCase {
XCTAssert(documentWindow.exists) XCTAssert(documentWindow.exists)
} }
func testLaunchPerformance() throws {
// This measures how long it takes to launch your application.
self.measure(metrics: [XCTApplicationLaunchMetric()]) {
XCUIApplication().launch()
}
}
} }