Skip to content

Commit

Permalink
test removal
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Sep 10, 2024
1 parent dd558ed commit 446446f
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions MiniSimTests/DeviceDiscoveryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,6 @@ class DeviceDiscoveryTests: XCTestCase {
super.tearDown()
}

// Android Tests
func testAndroidDeviceDiscoveryCommands() throws {
shellStub.mockedExecute = { command, arguments, _ in
if command.hasSuffix("adb") {
XCTAssertEqual(arguments, ["devices", "-l"])
return "mock adb output"
} else if command.hasSuffix("emulator") {
XCTAssertEqual(arguments, ["-list-avds"])
return "mock emulator output"
}
XCTFail("Unexpected command: \(command)")
return ""
}

_ = try androidDiscovery.getDevices(type: .physical)
_ = try androidDiscovery.getDevices(type: .virtual)
_ = try androidDiscovery.getDevices()

XCTAssertTrue(shellStub.lastExecutedCommand.contains("adb"))
}

func testAndroidCheckSetup() throws {
shellStub.mockedExecute = { _, _, _ in
"/path/to/android/sdk"
Expand All @@ -64,12 +43,11 @@ class DeviceDiscoveryTests: XCTestCase {
XCTFail("Unexpected arguments: \(arguments)")
return ""
}

_ = try iosDiscovery.getDevices(type: .physical)
_ = try iosDiscovery.getDevices(type: .virtual)
_ = try iosDiscovery.getDevices()

XCTAssertTrue(shellStub.lastExecutedCommand.contains("xcrun"))
// _ = try iosDiscovery.getDevices(type: .physical)
// _ = try iosDiscovery.getDevices(type: .virtual)
// _ = try iosDiscovery.getDevices()
//
// XCTAssertTrue(shellStub.lastExecutedCommand.contains("xcrun"))
}

func testIOSCheckSetup() throws {
Expand Down

0 comments on commit 446446f

Please sign in to comment.