Skip to content

Commit 4323911

Browse files
stephencelisp4checo
authored andcommitted
Skip test if CI (#1632)
* Skip test if CI We have an existing flakey test that we want to skip on CI, but we need to pass along the env var to the scheme for it to apply to Xcode builds, simulators, etc. * debug * wip (cherry picked from commit e93f02ad3247da0010f8a7d012eeec6c5c4b0dae) # Conflicts: # Tests/ComposableArchitectureTests/RuntimeWarningTests.swift
1 parent 3361124 commit 4323911

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

ComposableArchitecture.xcworkspace/xcshareddata/xcschemes/ComposableArchitecture.xcscheme

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@
6161
debugDocumentVersioning = "YES"
6262
debugServiceExtension = "internal"
6363
allowLocationSimulation = "YES">
64+
<EnvironmentVariables>
65+
<EnvironmentVariable
66+
key = "CI"
67+
value = "$(CI)"
68+
isEnabled = "YES">
69+
</EnvironmentVariable>
70+
</EnvironmentVariables>
6471
</LaunchAction>
6572
<ProfileAction
6673
buildConfiguration = "Release"

Tests/ComposableArchitectureTests/RuntimeWarningTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
_ = XCTWaiter.wait(for: [.init()], timeout: 0.5)
119119
}
120120

121+
#if os(macOS)
121122
@MainActor
122123
func testEffectEmitMainThread() async throws {
123124
try XCTSkipIf(ProcessInfo.processInfo.environment["CI"] != nil)
@@ -190,6 +191,7 @@
190191
)
191192
await ViewStore(store).send(.tap).finish()
192193
}
194+
#endif
193195

194196
@MainActor
195197
func testBindingUnhandledAction() {

0 commit comments

Comments
 (0)