Skip to content

Commit

Permalink
Setup UITest App
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Jun 25, 2024
1 parent 151e164 commit 561eee2
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 529 deletions.
4 changes: 2 additions & 2 deletions Tests/UITests/TestApp.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"targets" : [
{
"containerPath" : "container:..\/..",
"identifier" : "TemplatePackage",
"name" : "TemplatePackage"
"identifier" : "SpeziDevices",
"name" : "SpeziDevices"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion Tests/UITests/TestApp.xctestplan.license
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This source file is part of the TemplatePackage open-source project
This source file is part of the Stanford Spezi open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This source file is part of the TemplatePackage open-source project
This source file is part of the Stanford Spezi open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This source file is part of the TemplatePackage open-source project
This source file is part of the Stanford Spezi open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This source file is part of the TemplatePackage open-source project
This source file is part of the Stanford Spezi open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

Expand Down
7 changes: 3 additions & 4 deletions Tests/UITests/TestApp/TestApp.swift
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
//
// This source file is part of the TemplatePackage open-source project
// This source file is part of the Stanford Spezi open-source project
//
// SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
// SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//

import SwiftUI
import TemplatePackage


@main
struct UITestsApp: App {
var body: some Scene {
WindowGroup {
Text(TemplatePackage().stanford)
Text("Hello World")
}
}
}
6 changes: 3 additions & 3 deletions Tests/UITests/TestAppUITests/TestAppUITests.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// This source file is part of the TemplatePackage open-source project
// This source file is part of the Stanford Spezi open-source project
//
// SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
// SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
Expand All @@ -20,6 +20,6 @@ class TestAppUITests: XCTestCase {
func testTemplatePackage() throws {
let app = XCUIApplication()
app.launch()
XCTAssert(app.staticTexts["Stanford University"].waitForExistence(timeout: 0.1))
XCTAssert(true)
}
}
37 changes: 0 additions & 37 deletions Tests/UITests/TestAppWatchApp.xctestplan

This file was deleted.

2 changes: 1 addition & 1 deletion Tests/UITests/TestAppWatchApp.xctestplan.license
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This source file is part of the TemplatePackage open-source project
This source file is part of the Stanford Spezi open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

Expand Down
Loading

0 comments on commit 561eee2

Please sign in to comment.