Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@ build/
.build/
.derivedData/

## fastlane (generated screenshots and run artifacts)
## per https://docs.fastlane.tools/best-practices/source-control/
fastlane/screenshots
fastlane/report.xml
fastlane/test_output
fastlane/Preview.html
fastlane/derived_data

## macOS custom folder icon
Icon[^a-zA-Z]
116 changes: 116 additions & 0 deletions ComputerSolitaire.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@
remoteGlobalIDString = 4B75C1D02F1A233400761A12;
remoteInfo = ComputerSolitaire;
};
4B75C1F02F1A233600761A12 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 4B75C1C92F1A233400761A12 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 4B75C1D02F1A233400761A12;
remoteInfo = ComputerSolitaire;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
4B75C1D12F1A233400761A12 /* Computer Solitaire.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Computer Solitaire.app"; sourceTree = BUILT_PRODUCTS_DIR; };
4B75C1E42F1A233500761A12 /* ComputerSolitaireTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ComputerSolitaireTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
4B75C1F12F1A233600761A12 /* ComputerSolitaireUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ComputerSolitaireUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
Expand All @@ -45,6 +53,11 @@
path = ComputerSolitaireTests;
sourceTree = "<group>";
};
4B75C1F22F1A233600761A12 /* ComputerSolitaireUITests */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = ComputerSolitaireUITests;
sourceTree = "<group>";
};
/* End PBXFileSystemSynchronizedRootGroup section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -62,6 +75,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
4B75C1F32F1A233600761A12 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -70,6 +90,7 @@
children = (
4B75C1D32F1A233400761A12 /* ComputerSolitaire */,
4B75C1E52F1A233500761A12 /* ComputerSolitaireTests */,
4B75C1F22F1A233600761A12 /* ComputerSolitaireUITests */,
4B75C1D22F1A233400761A12 /* Products */,
);
sourceTree = "<group>";
Expand All @@ -79,6 +100,7 @@
children = (
4B75C1D12F1A233400761A12 /* Computer Solitaire.app */,
4B75C1E42F1A233500761A12 /* ComputerSolitaireTests.xctest */,
4B75C1F12F1A233600761A12 /* ComputerSolitaireUITests.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -131,6 +153,29 @@
productReference = 4B75C1E42F1A233500761A12 /* ComputerSolitaireTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
4B75C1F62F1A233600761A12 /* ComputerSolitaireUITests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 4B75C1FA2F1A233600761A12 /* Build configuration list for PBXNativeTarget "ComputerSolitaireUITests" */;
buildPhases = (
4B75C1F42F1A233600761A12 /* Sources */,
4B75C1F32F1A233600761A12 /* Frameworks */,
4B75C1F52F1A233600761A12 /* Resources */,
);
buildRules = (
);
dependencies = (
4B75C1F72F1A233600761A12 /* PBXTargetDependency */,
);
fileSystemSynchronizedGroups = (
4B75C1F22F1A233600761A12 /* ComputerSolitaireUITests */,
);
name = ComputerSolitaireUITests;
packageProductDependencies = (
);
productName = ComputerSolitaireUITests;
productReference = 4B75C1F12F1A233600761A12 /* ComputerSolitaireUITests.xctest */;
productType = "com.apple.product-type.bundle.ui-testing";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand All @@ -148,6 +193,10 @@
CreatedOnToolsVersion = 26.2;
TestTargetID = 4B75C1D02F1A233400761A12;
};
4B75C1F62F1A233600761A12 = {
CreatedOnToolsVersion = 26.2;
TestTargetID = 4B75C1D02F1A233400761A12;
};
};
};
buildConfigurationList = 4B75C1CC2F1A233400761A12 /* Build configuration list for PBXProject "ComputerSolitaire" */;
Expand All @@ -166,6 +215,7 @@
targets = (
4B75C1D02F1A233400761A12 /* ComputerSolitaire */,
4B75C1E92F1A233500761A12 /* ComputerSolitaireTests */,
4B75C1F62F1A233600761A12 /* ComputerSolitaireUITests */,
);
};
/* End PBXProject section */
Expand All @@ -185,6 +235,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
4B75C1F52F1A233600761A12 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand All @@ -202,6 +259,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
4B75C1F42F1A233600761A12 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand All @@ -210,6 +274,11 @@
target = 4B75C1D02F1A233400761A12 /* ComputerSolitaire */;
targetProxy = 4B75C1EA2F1A233500761A12 /* PBXContainerItemProxy */;
};
4B75C1F72F1A233600761A12 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 4B75C1D02F1A233400761A12 /* ComputerSolitaire */;
targetProxy = 4B75C1F02F1A233600761A12 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
Expand Down Expand Up @@ -469,6 +538,44 @@
};
name = Release;
};
4B75C1F82F1A233600761A12 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = T778QMSML9;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 26.2;
MACOSX_DEPLOYMENT_TARGET = 26.2;
PRODUCT_BUNDLE_IDENTIFIER = com.crapshack.ComputerSolitaireUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = auto;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = ComputerSolitaire;
};
name = Debug;
};
4B75C1F92F1A233600761A12 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = T778QMSML9;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 26.2;
MACOSX_DEPLOYMENT_TARGET = 26.2;
PRODUCT_BUNDLE_IDENTIFIER = com.crapshack.ComputerSolitaireUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = auto;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = ComputerSolitaire;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -499,6 +606,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
4B75C1FA2F1A233600761A12 /* Build configuration list for PBXNativeTarget "ComputerSolitaireUITests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
4B75C1F82F1A233600761A12 /* Debug */,
4B75C1F92F1A233600761A12 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 4B75C1C92F1A233400761A12 /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "2620"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4B75C1D02F1A233400761A12"
BuildableName = "Computer Solitaire.app"
BlueprintName = "ComputerSolitaire"
ReferencedContainer = "container:ComputerSolitaire.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4B75C1E92F1A233500761A12"
BuildableName = "ComputerSolitaireTests.xctest"
BlueprintName = "ComputerSolitaireTests"
ReferencedContainer = "container:ComputerSolitaire.xcodeproj">
</BuildableReference>
</TestableReference>
<!-- Screenshot capture tests: skipped in normal test runs; they run
via the dedicated ComputerSolitaireScreenshots scheme
(fastlane screenshots). -->
<TestableReference
skipped = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4B75C1F62F1A233600761A12"
BuildableName = "ComputerSolitaireUITests.xctest"
BlueprintName = "ComputerSolitaireUITests"
Comment on lines +44 to +50

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove screenshot UI tests from the main scheme

The documented test workflow runs xcodebuild ... -scheme ComputerSolitaire ... test, and this new TestableReference makes every normal test run execute ScreenshotCaptureUITests, which launches the app for each staged board and captures screenshots. That should stay isolated to ComputerSolitaireScreenshots; otherwise ordinary unit-test/CI runs become UI-automation dependent, slower, and more likely to fail in non-interactive environments.

Useful? React with 👍 / 👎.

ReferencedContainer = "container:ComputerSolitaire.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4B75C1D02F1A233400761A12"
BuildableName = "Computer Solitaire.app"
BlueprintName = "ComputerSolitaire"
ReferencedContainer = "container:ComputerSolitaire.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4B75C1D02F1A233400761A12"
BuildableName = "Computer Solitaire.app"
BlueprintName = "ComputerSolitaire"
ReferencedContainer = "container:ComputerSolitaire.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading
Loading