Open source omnivore
This commit is contained in:
8
apple/Tests/MacOS/UnitTests/MacAppSmokeTest.swift
Normal file
8
apple/Tests/MacOS/UnitTests/MacAppSmokeTest.swift
Normal 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")
|
||||
}
|
||||
}
|
||||
7
apple/Tests/UITests/Common/ScreenIdentifierHelpers.swift
Normal file
7
apple/Tests/UITests/Common/ScreenIdentifierHelpers.swift
Normal file
@ -0,0 +1,7 @@
|
||||
import XCTest
|
||||
|
||||
extension XCUIApplication {
|
||||
var isDisplayingWelcomeScreen: Bool {
|
||||
otherElements["welcomeView"].waitForExistence(timeout: 2)
|
||||
}
|
||||
}
|
||||
23
apple/Tests/UITests/Mac/MacLaunchTests.swift
Normal file
23
apple/Tests/UITests/Mac/MacLaunchTests.swift
Normal 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()
|
||||
}
|
||||
}
|
||||
}
|
||||
23
apple/Tests/UITests/iOS/iOSLaunchTests.swift
Normal file
23
apple/Tests/UITests/iOS/iOSLaunchTests.swift
Normal 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()
|
||||
}
|
||||
}
|
||||
}
|
||||
9
apple/Tests/iOS/UnitTests/SmokeTests.swift
Normal file
9
apple/Tests/iOS/UnitTests/SmokeTests.swift
Normal 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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user