Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest snapshot testing version #12

Merged
merged 3 commits into from
Sep 15, 2024
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
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ on:

jobs:
verify-pods:
runs-on: macos-12
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- run: sudo gem install cocoapods
- run: pod lib lint
- run: xcodebuild test -scheme Nimble-SnapshotTesting -destination 'platform=iOS Simulator,OS=17.5,name=iPhone 15'

Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1600"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Nimble-SnapshotTesting"
BuildableName = "Nimble-SnapshotTesting"
BlueprintName = "Nimble-SnapshotTesting"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Nimble-SnapshotTestingTests"
BuildableName = "Nimble-SnapshotTestingTests"
BlueprintName = "Nimble-SnapshotTestingTests"
ReferencedContainer = "container:">
</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">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Nimble-SnapshotTesting"
BuildableName = "Nimble-SnapshotTesting"
BlueprintName = "Nimble-SnapshotTesting"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
6 changes: 4 additions & 2 deletions Example-SPM/Example-SPM.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_STRICT_CONCURRENCY = complete;
};
name = Debug;
};
Expand Down Expand Up @@ -449,6 +450,7 @@
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
SWIFT_STRICT_CONCURRENCY = complete;
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down Expand Up @@ -626,15 +628,15 @@
repositoryURL = "https://github.com/quick/quick.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 3.0.0;
minimumVersion = 7.0.0;
};
};
C8C1596827EC1ED0002296AF /* XCRemoteSwiftPackageReference "nimble" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/quick/nimble";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 9.2.1;
minimumVersion = 13.0.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,80 @@
"repositoryURL": "https://github.com/mattgallagher/CwlCatchException.git",
"state": {
"branch": null,
"revision": "35f9e770f54ce62dd8526470f14c6e137cef3eea",
"version": "2.1.1"
"revision": "07b2ba21d361c223e25e3c1e924288742923f08c",
"version": "2.2.1"
}
},
{
"package": "CwlPreconditionTesting",
"repositoryURL": "https://github.com/mattgallagher/CwlPreconditionTesting.git",
"state": {
"branch": null,
"revision": "c21f7bab5ca8eee0a9998bbd17ca1d0eb45d4688",
"version": "2.1.0"
"revision": "0139c665ebb45e6a9fbdb68aabfd7c39f3fe0071",
"version": "2.2.2"
}
},
{
"package": "Nimble",
"repositoryURL": "https://github.com/quick/nimble",
"state": {
"branch": null,
"revision": "c93f16c25af5770f0d3e6af27c9634640946b068",
"version": "9.2.1"
"revision": "cecacf00ddf36c1efff8d14beb65087f2a676be9",
"version": "13.5.0"
}
},
{
"package": "Quick",
"repositoryURL": "https://github.com/quick/quick.git",
"state": {
"branch": null,
"revision": "8cce6acd38f965f5baa3167b939f86500314022b",
"version": "3.1.2"
"revision": "1163a1b1b114a657c7432b63dd1f92ce99fe11a6",
"version": "7.6.2"
}
},
{
"package": "SnapshotTesting",
"package": "swift-algorithms",
"repositoryURL": "https://github.com/apple/swift-algorithms.git",
"state": {
"branch": null,
"revision": "f6919dfc309e7f1b56224378b11e28bab5bccc42",
"version": "1.2.0"
}
},
{
"package": "swift-argument-parser",
"repositoryURL": "https://github.com/apple/swift-argument-parser.git",
"state": {
"branch": null,
"revision": "41982a3656a71c768319979febd796c6fd111d5c",
"version": "1.5.0"
}
},
{
"package": "swift-numerics",
"repositoryURL": "https://github.com/apple/swift-numerics.git",
"state": {
"branch": null,
"revision": "0a5bc04095a675662cf24757cc0640aa2204253b",
"version": "1.0.2"
}
},
{
"package": "swift-snapshot-testing",
"repositoryURL": "https://github.com/pointfreeco/swift-snapshot-testing.git",
"state": {
"branch": null,
"revision": "f8a9c997c3c1dab4e216a8ec9014e23144cbab37",
"version": "1.9.0"
"revision": "7b0bbbae90c41f848f90ac7b4df6c4f50068256d",
"version": "1.17.5"
}
},
{
"package": "swift-syntax",
"repositoryURL": "https://github.com/swiftlang/swift-syntax",
"state": {
"branch": null,
"revision": "cb53fa1bd3219b0b23ded7dfdd3b2baff266fd25",
"version": "600.0.0"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0900"
version = "1.3">
LastUpgradeVersion = "1600"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
Expand All @@ -14,24 +15,10 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "Nimble-SnapshotTesting_Example.app"
BlueprintName = "Nimble-SnapshotTesting_Example"
ReferencedContainer = "container:Nimble-SnapshotTesting.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "Nimble-SnapshotTesting_Tests.xctest"
BlueprintName = "Nimble-SnapshotTesting_Tests"
ReferencedContainer = "container:Nimble-SnapshotTesting.xcodeproj">
BlueprintIdentifier = "C8C1592D27EC1DEF002296AF"
BuildableName = "Example-SPM.app"
BlueprintName = "Example-SPM"
ReferencedContainer = "container:Example-SPM.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -40,37 +27,35 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "Nimble-SnapshotTesting_Tests.xctest"
BlueprintName = "Nimble-SnapshotTesting_Tests"
ReferencedContainer = "container:Nimble-SnapshotTesting.xcodeproj">
BlueprintIdentifier = "C8C1594327EC1DF0002296AF"
BuildableName = "Example-SPMTests.xctest"
BlueprintName = "Example-SPMTests"
ReferencedContainer = "container:Example-SPM.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C8C1594D27EC1DF0002296AF"
BuildableName = "Example-SPMUITests.xctest"
BlueprintName = "Example-SPMUITests"
ReferencedContainer = "container:Example-SPM.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "Nimble-SnapshotTesting_Example.app"
BlueprintName = "Nimble-SnapshotTesting_Example"
ReferencedContainer = "container:Nimble-SnapshotTesting.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand All @@ -81,14 +66,19 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "Nimble-SnapshotTesting_Example.app"
BlueprintName = "Nimble-SnapshotTesting_Example"
ReferencedContainer = "container:Nimble-SnapshotTesting.xcodeproj">
BlueprintIdentifier = "C8C1592D27EC1DEF002296AF"
BuildableName = "Example-SPM.app"
BlueprintName = "Example-SPM"
ReferencedContainer = "container:Example-SPM.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
<EnvironmentVariables>
<EnvironmentVariable
key = "SNAPSHOT_TESTING_RECORD"
value = "all"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand All @@ -100,10 +90,10 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "Nimble-SnapshotTesting_Example.app"
BlueprintName = "Nimble-SnapshotTesting_Example"
ReferencedContainer = "container:Nimble-SnapshotTesting.xcodeproj">
BlueprintIdentifier = "C8C1592D27EC1DEF002296AF"
BuildableName = "Example-SPM.app"
BlueprintName = "Example-SPM"
ReferencedContainer = "container:Example-SPM.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down
Loading
Loading