Skip to content

Commit 6d9f2c8

Browse files
test: Remove crash test from SwiftUITestSample (#5548)
We now use xcrun for testing the SDK when crashing with #5512. We can remove the unused crash testing logic for the SwiftUITestSample.
1 parent 231031e commit 6d9f2c8

File tree

3 files changed

+0
-55
lines changed

3 files changed

+0
-55
lines changed

TestSamples/SwiftUITestSample/SwiftUITestSample.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,12 @@ targets:
3030
type: bundle.ui-testing
3131
platform: auto
3232
sources:
33-
- SwiftUITestSampleUITestsCrashOnly
3433
- SwiftUITestSampleUITestsEnvelopeOnly
3534
configFiles:
3635
Debug: SwiftUITestSampleUITests.xcconfig
3736
Release: SwiftUITestSampleUITests.xcconfig
3837
Test: SwiftUITestSampleUITests.xcconfig
3938
TestCI: SwiftUITestSampleUITests.xcconfig
40-
SwiftUITestSampleUITestsCrashOnly:
41-
type: bundle.ui-testing
42-
platform: auto
43-
sources:
44-
- SwiftUITestSampleUITestsCrashOnly
45-
configFiles:
46-
Debug: SwiftUITestSampleUITests.xcconfig
47-
Release: SwiftUITestSampleUITests.xcconfig
48-
Test: SwiftUITestSampleUITests.xcconfig
49-
TestCI: SwiftUITestSampleUITests.xcconfig
5039
SwiftUITestSampleUITestsEnvelopeOnly:
5140
type: bundle.ui-testing
5241
platform: auto
@@ -58,19 +47,6 @@ targets:
5847
Test: SwiftUITestSampleUITests.xcconfig
5948
TestCI: SwiftUITestSampleUITests.xcconfig
6049
schemes:
61-
SwiftUITestSampleCrash:
62-
build:
63-
targets:
64-
SwiftUITestSample: all
65-
SwiftUITestSampleUITestsCrashOnly: test
66-
test:
67-
config: Test
68-
testPlans:
69-
- path: ../../Plans/SwiftUITestSample_Crash.xctestplan
70-
preActions:
71-
- script: |
72-
echo "Uninstalling app"
73-
xcrun simctl uninstall booted io.sentry.tests.SwiftUITestSample
7450
SwiftUITestSampleEnvelope:
7551
build:
7652
targets:

TestSamples/SwiftUITestSample/SwiftUITestSample/SwiftUITestSampleApp.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ struct ContentView: View {
2828
var body: some View {
2929
VStack {
3030
Text("Welcome!")
31-
Button("Crash") {
32-
SentrySDK.crash()
33-
}
3431
Button("Close SDK") {
3532
SentrySDK.close()
3633
}

TestSamples/SwiftUITestSample/SwiftUITestSampleUITestsCrashOnly/CrashTests.swift

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)