Skip to content

Commit e00e236

Browse files
committed
test(session-replay): Add masking tests for common cases
1 parent 6a5c478 commit e00e236

File tree

138 files changed

+1514
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+1514
-4
lines changed

Sentry.xcodeproj/project.pbxproj

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@
767767
D43B26D62D70964C007747FD /* SentrySpanOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = D43B26D52D709648007747FD /* SentrySpanOperation.m */; };
768768
D43B26D82D70A550007747FD /* SentryTraceOrigin.m in Sources */ = {isa = PBXBuildFile; fileRef = D43B26D72D70A54A007747FD /* SentryTraceOrigin.m */; };
769769
D43B26DA2D70A612007747FD /* SentrySpanDataKey.m in Sources */ = {isa = PBXBuildFile; fileRef = D43B26D92D70A60E007747FD /* SentrySpanDataKey.m */; };
770+
D43C1BE82E8FB85400CD5D67 /* SnapshotTesting in Frameworks */ = {isa = PBXBuildFile; productRef = D43C1BE72E8FB85400CD5D67 /* SnapshotTesting */; };
770771
D4411DD52E02B74900EA4987 /* ArrayAccessesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4411DD42E02B74100EA4987 /* ArrayAccessesTests.swift */; };
771772
D44B16722DE464AD006DBDB3 /* TestDispatchFactoryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D44B16712DE464A9006DBDB3 /* TestDispatchFactoryTests.swift */; };
772773
D451ED5D2D92ECD200C9BEA8 /* SentryOnDemandReplayError.swift in Sources */ = {isa = PBXBuildFile; fileRef = D451ED5C2D92ECD200C9BEA8 /* SentryOnDemandReplayError.swift */; };
@@ -813,6 +814,7 @@
813814
D4AF00212D2E92FD00F5F3D7 /* SentryNSFileManagerSwizzling.m in Sources */ = {isa = PBXBuildFile; fileRef = D4AF00202D2E92FD00F5F3D7 /* SentryNSFileManagerSwizzling.m */; };
814815
D4AF00232D2E931000F5F3D7 /* SentryNSFileManagerSwizzling.h in Headers */ = {isa = PBXBuildFile; fileRef = D4AF00222D2E931000F5F3D7 /* SentryNSFileManagerSwizzling.h */; };
815816
D4AF00252D2E93C400F5F3D7 /* SentryNSFileManagerSwizzlingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D4AF00242D2E93C400F5F3D7 /* SentryNSFileManagerSwizzlingTests.m */; };
817+
D4AF7D2A2E940493004F0F59 /* SentryUIRedactBuilderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4AF7D292E940492004F0F59 /* SentryUIRedactBuilderTests.swift */; };
816818
D4B0DC7F2DA9257A00DE61B6 /* SentryRenderVideoResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4B0DC7E2DA9257200DE61B6 /* SentryRenderVideoResult.swift */; };
817819
D4B339F92EA7823000359F3A /* SentryTestUtilsDynamic.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D84DAD4D2B17428D003CF120 /* SentryTestUtilsDynamic.framework */; };
818820
D4B339FA2EA7823000359F3A /* SentryTestUtilsDynamic.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D84DAD4D2B17428D003CF120 /* SentryTestUtilsDynamic.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
@@ -965,7 +967,7 @@
965967
D8DBE0CA2C0E093000FAB1FD /* SentryTouchTrackerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8DBE0C92C0E093000FAB1FD /* SentryTouchTrackerTests.swift */; };
966968
D8DBE0D22C0EFFC300FAB1FD /* SentryReplayOptionsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8DBE0D12C0EFFC300FAB1FD /* SentryReplayOptionsTests.swift */; };
967969
D8F67AF12BE0D33F00C9197B /* UIImageHelperTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8F67AEF2BE0D31A00C9197B /* UIImageHelperTests.swift */; };
968-
D8F67AF42BE10F9600C9197B /* SentryUIRedactBuilderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8F67AF22BE10F7600C9197B /* SentryUIRedactBuilderTests.swift */; };
970+
D8F67AF42BE10F9600C9197B /* SentryUIRedactBuilderTests+Common.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8F67AF22BE10F7600C9197B /* SentryUIRedactBuilderTests+Common.swift */; };
969971
D8F67B1B2BE9728600C9197B /* SentrySRDefaultBreadcrumbConverter.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8F67B1A2BE9728600C9197B /* SentrySRDefaultBreadcrumbConverter.swift */; };
970972
D8F67B222BEAB6CC00C9197B /* SentryRRWebEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8F67B212BEAB6CC00C9197B /* SentryRRWebEvent.swift */; };
971973
D8F6A2472885512100320515 /* SentryPredicateDescriptor.m in Sources */ = {isa = PBXBuildFile; fileRef = D8F6A2452885512100320515 /* SentryPredicateDescriptor.m */; };
@@ -2178,6 +2180,7 @@
21782180
D4AF00202D2E92FD00F5F3D7 /* SentryNSFileManagerSwizzling.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryNSFileManagerSwizzling.m; sourceTree = "<group>"; };
21792181
D4AF00222D2E931000F5F3D7 /* SentryNSFileManagerSwizzling.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryNSFileManagerSwizzling.h; path = include/SentryNSFileManagerSwizzling.h; sourceTree = "<group>"; };
21802182
D4AF00242D2E93C400F5F3D7 /* SentryNSFileManagerSwizzlingTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryNSFileManagerSwizzlingTests.m; sourceTree = "<group>"; };
2183+
D4AF7D292E940492004F0F59 /* SentryUIRedactBuilderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryUIRedactBuilderTests.swift; sourceTree = "<group>"; };
21812184
D4B0DC7E2DA9257200DE61B6 /* SentryRenderVideoResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryRenderVideoResult.swift; sourceTree = "<group>"; };
21822185
D4BCA0C22DA93C25009E49AB /* SentrySessionReplayIntegration+Test.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SentrySessionReplayIntegration+Test.h"; sourceTree = "<group>"; };
21832186
D4C5F5992D4249E0002A9BF6 /* DataSentryTracingIntegrationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataSentryTracingIntegrationTests.swift; sourceTree = "<group>"; };
@@ -2344,7 +2347,7 @@
23442347
D8F01DE42A126B62008F4996 /* HybridPod.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; path = HybridPod.podspec; sourceTree = "<group>"; };
23452348
D8F01DE52A126BF5008F4996 /* HybridTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HybridTest.swift; sourceTree = "<group>"; };
23462349
D8F67AEF2BE0D31A00C9197B /* UIImageHelperTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIImageHelperTests.swift; sourceTree = "<group>"; };
2347-
D8F67AF22BE10F7600C9197B /* SentryUIRedactBuilderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryUIRedactBuilderTests.swift; sourceTree = "<group>"; };
2350+
D8F67AF22BE10F7600C9197B /* SentryUIRedactBuilderTests+Common.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentryUIRedactBuilderTests+Common.swift"; sourceTree = "<group>"; };
23482351
D8F67B1A2BE9728600C9197B /* SentrySRDefaultBreadcrumbConverter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySRDefaultBreadcrumbConverter.swift; sourceTree = "<group>"; };
23492352
D8F67B212BEAB6CC00C9197B /* SentryRRWebEvent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryRRWebEvent.swift; sourceTree = "<group>"; };
23502353
D8F6A2452885512100320515 /* SentryPredicateDescriptor.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryPredicateDescriptor.m; sourceTree = "<group>"; };
@@ -2543,6 +2546,7 @@
25432546
buildActionMask = 2147483647;
25442547
files = (
25452548
8431F01C29B2854200D8DC56 /* libSentryTestUtils.a in Frameworks */,
2549+
D43C1BE82E8FB85400CD5D67 /* SnapshotTesting in Frameworks */,
25462550
D84DAD592B1742C1003CF120 /* SentryTestUtilsDynamic.framework in Frameworks */,
25472551
63AA766A1EB8CB2F00D153DE /* Sentry.framework in Frameworks */,
25482552
);
@@ -4233,8 +4237,10 @@
42334237
D4009EA02D77196F0007AF30 /* ViewCapture */ = {
42344238
isa = PBXGroup;
42354239
children = (
4240+
D4AF802E2E965188004F0F59 /* __Snapshots__ */,
42364241
D82915622C85EF0C00A6CDD4 /* SentryViewPhotographerTests.swift */,
4237-
D8F67AF22BE10F7600C9197B /* SentryUIRedactBuilderTests.swift */,
4242+
D4AF7D292E940492004F0F59 /* SentryUIRedactBuilderTests.swift */,
4243+
D8F67AF22BE10F7600C9197B /* SentryUIRedactBuilderTests+Common.swift */,
42384244
D45E2D762E003EBF0072A6B7 /* TestRedactOptions.swift */,
42394245
);
42404246
path = ViewCapture;
@@ -4342,6 +4348,13 @@
43424348
path = Screenshot;
43434349
sourceTree = "<group>";
43444350
};
4351+
D4AF802E2E965188004F0F59 /* __Snapshots__ */ = {
4352+
isa = PBXGroup;
4353+
children = (
4354+
);
4355+
path = __Snapshots__;
4356+
sourceTree = "<group>";
4357+
};
43454358
D4A0C22A2E9E3CE100791353 /* InfoPlist */ = {
43464359
isa = PBXGroup;
43474360
children = (
@@ -5374,6 +5387,7 @@
53745387
);
53755388
name = SentryTests;
53765389
packageProductDependencies = (
5390+
D43C1BE72E8FB85400CD5D67 /* SnapshotTesting */,
53775391
);
53785392
productName = "Tests-iOS";
53795393
productReference = 63AA76651EB8CB2F00D153DE /* SentryTests.xctest */;
@@ -5546,6 +5560,7 @@
55465560
);
55475561
mainGroup = 6327C5C91EB8A783004E799B;
55485562
packageReferences = (
5563+
D43C1BE62E8FB85400CD5D67 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */,
55495564
);
55505565
productRefGroup = 6327C5D41EB8A783004E799B /* Products */;
55515566
projectDirPath = "";
@@ -6115,7 +6130,7 @@
61156130
FAC62B652E15A4100003909D /* SentrySDKThreadTests.swift in Sources */,
61166131
D82915632C85EF0C00A6CDD4 /* SentryViewPhotographerTests.swift in Sources */,
61176132
D8DBE0CA2C0E093000FAB1FD /* SentryTouchTrackerTests.swift in Sources */,
6118-
D8F67AF42BE10F9600C9197B /* SentryUIRedactBuilderTests.swift in Sources */,
6133+
D8F67AF42BE10F9600C9197B /* SentryUIRedactBuilderTests+Common.swift in Sources */,
61196134
92ECD7482E05B57C0063EC10 /* SentryLogAttributeTests.swift in Sources */,
61206135
63B819141EC352A7002FDF4C /* SentryInterfacesTests.m in Sources */,
61216136
92B6BDA92E05B8F600D538B3 /* SentryLogLevelTests.swift in Sources */,
@@ -6201,6 +6216,7 @@
62016216
62F4DDA12C04CB9700588890 /* SentryBaggageSerializationTests.swift in Sources */,
62026217
7BE912AF272166DD00E49E62 /* SentryNoOpSpanTests.swift in Sources */,
62036218
D4F2B5352D0C69D500649E42 /* SentryCrashCTests.swift in Sources */,
6219+
D4AF7D2A2E940493004F0F59 /* SentryUIRedactBuilderTests.swift in Sources */,
62046220
7B56D73524616E5600B842DA /* SentryConcurrentRateLimitsDictionaryTests.swift in Sources */,
62056221
7B7D8730248648AD00D2ECFF /* SentryStacktraceBuilderTests.swift in Sources */,
62066222
FA21A2EF2E60E9CB00E7EADB /* EnvelopeComparison.swift in Sources */,
@@ -8946,6 +8962,25 @@
89468962
defaultConfigurationName = Release;
89478963
};
89488964
/* End XCConfigurationList section */
8965+
8966+
/* Begin XCRemoteSwiftPackageReference section */
8967+
D43C1BE62E8FB85400CD5D67 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */ = {
8968+
isa = XCRemoteSwiftPackageReference;
8969+
repositoryURL = "https://github.com/pointfreeco/swift-snapshot-testing";
8970+
requirement = {
8971+
kind = upToNextMajorVersion;
8972+
minimumVersion = 1.18.7;
8973+
};
8974+
};
8975+
/* End XCRemoteSwiftPackageReference section */
8976+
8977+
/* Begin XCSwiftPackageProductDependency section */
8978+
D43C1BE72E8FB85400CD5D67 /* SnapshotTesting */ = {
8979+
isa = XCSwiftPackageProductDependency;
8980+
package = D43C1BE62E8FB85400CD5D67 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */;
8981+
productName = SnapshotTesting;
8982+
};
8983+
/* End XCSwiftPackageProductDependency section */
89498984
};
89508985
rootObject = 6327C5CA1EB8A783004E799B /* Project object */;
89518986
}

0 commit comments

Comments
 (0)