diff --git a/MiniSimTests/DeviceDiscoveryTests.swift b/MiniSimTests/DeviceDiscoveryTests.swift index 8e4a5cf..55e1572 100644 --- a/MiniSimTests/DeviceDiscoveryTests.swift +++ b/MiniSimTests/DeviceDiscoveryTests.swift @@ -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" @@ -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 {