Open source omnivore

This commit is contained in:
Jackson Harper
2022-02-11 09:24:33 -08:00
parent b5a6008f76
commit 84f32935f5
1485 changed files with 188409 additions and 0 deletions

View File

@ -0,0 +1,8 @@
import XCTest
final class MacAppSmokeTest: XCTestCase {
func testExample() throws {
let isThereSmoke = false
XCTAssertFalse(isThereSmoke, "Uh oh, there is smoke coming from the macos app")
}
}

View File

@ -0,0 +1,7 @@
import XCTest
extension XCUIApplication {
var isDisplayingWelcomeScreen: Bool {
otherElements["welcomeView"].waitForExistence(timeout: 2)
}
}

View File

@ -0,0 +1,23 @@
import XCTest
class MacUILaunchTest: XCTestCase {
var app: XCUIApplication!
override func setUpWithError() throws {
try super.setUpWithError()
continueAfterFailure = false
app = XCUIApplication()
app.launchArguments.append("--uitesting")
app.launch()
}
func testThatWelcomeScreenDisplaysForLoggedOutUser() {
XCTAssertTrue(app.isDisplayingWelcomeScreen)
}
func testLaunchPerformance() throws {
measure(metrics: [XCTApplicationLaunchMetric()]) {
XCUIApplication().launch()
}
}
}

View File

@ -0,0 +1,23 @@
import XCTest
class IosLaunchTest: XCTestCase {
var app: XCUIApplication!
override func setUpWithError() throws {
try super.setUpWithError()
continueAfterFailure = false
app = XCUIApplication()
app.launchArguments.append("--uitesting")
app.launch()
}
func testThatWelcomeScreenDisplaysForLoggedOutUser() {
XCTAssertTrue(app.isDisplayingWelcomeScreen)
}
func testLaunchPerformance() throws {
measure(metrics: [XCTApplicationLaunchMetric()]) {
XCUIApplication().launch()
}
}
}

View File

@ -0,0 +1,9 @@
@testable import Omnivore
import XCTest
final class IOSAppSmokeTest: XCTestCase {
func testExample() throws {
let isThereSmoke = false
XCTAssertFalse(isThereSmoke, "Uh oh, there is smoke coming from the iOS app")
}
}