This commit is contained in:
louisehsu 2025-04-22 15:14:32 -07:00
parent 329f36e521
commit ea9b3c1ecb
2 changed files with 125 additions and 0 deletions

View File

@ -0,0 +1,11 @@
import XCTest
final class BenchmarkTests: XCTestCase {
@MainActor
func testLaunchPerformance() throws {
measure(metrics: [XCTApplicationLaunchMetric()]) {
XCUIApplication().launch()
}
}
}

View File

@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1630"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F241F5012D08EE8800C053B5"
BuildableName = "hello_world_swiftui.app"
BlueprintName = "hello_world_swiftui"
ReferencedContainer = "container:hello_world_swiftui.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Release"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F241F5112D08EE8900C053B5"
BuildableName = "hello_world_swiftuiTests.xctest"
BlueprintName = "hello_world_swiftuiTests"
ReferencedContainer = "container:hello_world_swiftui.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F241F51B2D08EE8900C053B5"
BuildableName = "hello_world_swiftuiUITests.xctest"
BlueprintName = "hello_world_swiftuiUITests"
ReferencedContainer = "container:hello_world_swiftui.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F22C4E6C2DB80B3F0070527F"
BuildableName = "BenchmarkTests.xctest"
BlueprintName = "BenchmarkTests"
ReferencedContainer = "container:hello_world_swiftui.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F241F5012D08EE8800C053B5"
BuildableName = "hello_world_swiftui.app"
BlueprintName = "hello_world_swiftui"
ReferencedContainer = "container:hello_world_swiftui.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Debug"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F241F5012D08EE8800C053B5"
BuildableName = "hello_world_swiftui.app"
BlueprintName = "hello_world_swiftui"
ReferencedContainer = "container:hello_world_swiftui.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Debug"
revealArchiveInOrganizer = "YES"
allowsArchivingForSimulator = "YES">
</ArchiveAction>
</Scheme>