From a11471f7b1f1c8aa3ef9fd47f764b88bcb0be167 Mon Sep 17 00:00:00 2001 From: 1024jp <1024jp@wolfrosch.com> Date: Wed, 12 Jan 2022 11:56:56 +0900 Subject: [PATCH] Add launch performance measurement to UI test --- UI Tests/UITests.swift | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/UI Tests/UITests.swift b/UI Tests/UITests.swift index 5bbcc8e12..b9979d640 100644 --- a/UI Tests/UITests.swift +++ b/UI Tests/UITests.swift @@ -8,7 +8,7 @@ // // --------------------------------------------------------------------------- // -// © 2018-2020 1024jp +// © 2018-2022 1024jp // // Licensed under the Apache License, Version 2.0 (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) } + + func testLaunchPerformance() throws { + + // This measures how long it takes to launch your application. + self.measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + }