···11+//
22+// Item.swift
33+// AtProtoBackup
44+//
55+// Created by Corey Alexander on 8/25/25.
66+//
77+88+import Foundation
99+import SwiftData
1010+1111+1212+@Model
1313+final class Account {
1414+ var did: String
1515+1616+ init(did: String) {
1717+ self.did = did
1818+ }
1919+}
···11+//
22+// AtProtoBackupTests.swift
33+// AtProtoBackupTests
44+//
55+// Created by Corey Alexander on 8/25/25.
66+//
77+88+import Testing
99+1010+struct AtProtoBackupTests {
1111+1212+ @Test func example() async throws {
1313+ // Write your test here and use APIs like `#expect(...)` to check expected conditions.
1414+ }
1515+1616+}
+41
AtProtoBackupUITests/AtProtoBackupUITests.swift
···11+//
22+// AtProtoBackupUITests.swift
33+// AtProtoBackupUITests
44+//
55+// Created by Corey Alexander on 8/25/25.
66+//
77+88+import XCTest
99+1010+final class AtProtoBackupUITests: XCTestCase {
1111+1212+ override func setUpWithError() throws {
1313+ // Put setup code here. This method is called before the invocation of each test method in the class.
1414+1515+ // In UI tests it is usually best to stop immediately when a failure occurs.
1616+ continueAfterFailure = false
1717+1818+ // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
1919+ }
2020+2121+ override func tearDownWithError() throws {
2222+ // Put teardown code here. This method is called after the invocation of each test method in the class.
2323+ }
2424+2525+ @MainActor
2626+ func testExample() throws {
2727+ // UI tests must launch the application that they test.
2828+ let app = XCUIApplication()
2929+ app.launch()
3030+3131+ // Use XCTAssert and related functions to verify your tests produce the correct results.
3232+ }
3333+3434+ @MainActor
3535+ func testLaunchPerformance() throws {
3636+ // This measures how long it takes to launch your application.
3737+ measure(metrics: [XCTApplicationLaunchMetric()]) {
3838+ XCUIApplication().launch()
3939+ }
4040+ }
4141+}
···11+//
22+// AtProtoBackupUITestsLaunchTests.swift
33+// AtProtoBackupUITests
44+//
55+// Created by Corey Alexander on 8/25/25.
66+//
77+88+import XCTest
99+1010+final class AtProtoBackupUITestsLaunchTests: XCTestCase {
1111+1212+ override class var runsForEachTargetApplicationUIConfiguration: Bool {
1313+ true
1414+ }
1515+1616+ override func setUpWithError() throws {
1717+ continueAfterFailure = false
1818+ }
1919+2020+ @MainActor
2121+ func testLaunch() throws {
2222+ let app = XCUIApplication()
2323+ app.launch()
2424+2525+ // Insert steps here to perform after app launch but before taking a screenshot,
2626+ // such as logging into a test account or navigating somewhere in the app
2727+2828+ let attachment = XCTAttachment(screenshot: app.screenshot())
2929+ attachment.name = "Launch Screen"
3030+ attachment.lifetime = .keepAlways
3131+ add(attachment)
3232+ }
3333+}