From eaece58a37b7fa6c5512db4702cfe5d4db983ad2 Mon Sep 17 00:00:00 2001 From: AJ Lauer Barinov Date: Tue, 1 Oct 2024 11:42:13 -0700 Subject: [PATCH] test: add UI test configs put tests in right place --- .../project.pbxproj | 2 + .../xcschemes/MuxPlayerSwiftExample.xcscheme | 9 +- .../MuxPlayerSwiftExample.xctestplan | 24 +++++ .../MuxPlayerSwiftExampleTests.swift | 93 ------------------ .../MuxPlayerSwiftExampleUITests.swift | 98 ++++++++++++++++--- 5 files changed, 120 insertions(+), 106 deletions(-) create mode 100644 Examples/MuxPlayerSwiftExample/MuxPlayerSwiftExample.xctestplan diff --git a/Examples/MuxPlayerSwiftExample/MuxPlayerSwiftExample.xcodeproj/project.pbxproj b/Examples/MuxPlayerSwiftExample/MuxPlayerSwiftExample.xcodeproj/project.pbxproj index e99bd8c4..49dbdc38 100644 --- a/Examples/MuxPlayerSwiftExample/MuxPlayerSwiftExample.xcodeproj/project.pbxproj +++ b/Examples/MuxPlayerSwiftExample/MuxPlayerSwiftExample.xcodeproj/project.pbxproj @@ -53,6 +53,7 @@ 193228D72ACF6AC900966FE1 /* MuxPlayerSwiftExampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MuxPlayerSwiftExampleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 193228DB2ACF6AC900966FE1 /* MuxPlayerSwiftExampleUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MuxPlayerSwiftExampleUITests.swift; sourceTree = ""; }; 193228DD2ACF6AC900966FE1 /* MuxPlayerSwiftExampleUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MuxPlayerSwiftExampleUITestsLaunchTests.swift; sourceTree = ""; }; + 193D52E82CAC78C0004F20AA /* MuxPlayerSwiftExample.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = MuxPlayerSwiftExample.xctestplan; sourceTree = ""; }; 1966C52F2BEB4740005486D5 /* ProcessInfo+EnvironmentVariables.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ProcessInfo+EnvironmentVariables.swift"; sourceTree = ""; }; 19DD16AE2BEC010400F4DF4F /* SinglePlayerExampleController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SinglePlayerExampleController.swift; sourceTree = ""; }; 19DD16B02BEC028C00F4DF4F /* SmartCacheExampleViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SmartCacheExampleViewController.swift; sourceTree = ""; }; @@ -89,6 +90,7 @@ 193228AE2ACF6AC700966FE1 = { isa = PBXGroup; children = ( + 193D52E82CAC78C0004F20AA /* MuxPlayerSwiftExample.xctestplan */, 193228B92ACF6AC700966FE1 /* MuxPlayerSwiftExample */, 193228D02ACF6AC900966FE1 /* MuxPlayerSwiftExampleTests */, 193228DA2ACF6AC900966FE1 /* MuxPlayerSwiftExampleUITests */, diff --git a/Examples/MuxPlayerSwiftExample/MuxPlayerSwiftExample.xcodeproj/xcshareddata/xcschemes/MuxPlayerSwiftExample.xcscheme b/Examples/MuxPlayerSwiftExample/MuxPlayerSwiftExample.xcodeproj/xcshareddata/xcschemes/MuxPlayerSwiftExample.xcscheme index 22a8ff6c..2262ec05 100644 --- a/Examples/MuxPlayerSwiftExample/MuxPlayerSwiftExample.xcodeproj/xcshareddata/xcschemes/MuxPlayerSwiftExample.xcscheme +++ b/Examples/MuxPlayerSwiftExample/MuxPlayerSwiftExample.xcodeproj/xcshareddata/xcschemes/MuxPlayerSwiftExample.xcscheme @@ -26,8 +26,13 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES" - shouldAutocreateTestPlan = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES"> + + + +