quick fail on iPhone

This commit is contained in:
Patrick Metcalfe 2018-01-03 23:34:26 -06:00
parent 29b4623b29
commit 64218f98b4
3 changed files with 12 additions and 1 deletions

View File

@ -22,6 +22,10 @@ class PanelKit_UI_Tests: XCTestCase {
XCUIApplication().launch()
// In UI tests its important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
if UIDevice.current.userInterfaceIdiom == .phone {
XCTFail("Test does not work on an iPhone")
}
}
override func tearDown() {

View File

@ -29,7 +29,11 @@ class MainTests: XCTestCase {
XCTAssertNotNil(navigationController.view)
XCTAssertNotNil(viewController.view)
if UIDevice.current.userInterfaceIdiom == .phone {
continueAfterFailure = false
XCTFail("Test does not work on an iPhone")
}
}
override func tearDown() {

View File

@ -30,6 +30,9 @@ class StateTests: XCTestCase {
XCTAssertNotNil(navigationController.view)
XCTAssertNotNil(viewController.view)
if UIDevice.current.userInterfaceIdiom == .phone {
XCTFail("Test does not work on an iPhone")
}
}
override func tearDown() {