Skip to content

Commit 55eaa36

Browse files
authored
test(session-replay): Add masking tests for common cases (#6567)
1 parent f8cad3c commit 55eaa36

File tree

138 files changed

+1510
-0
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

+1510
-0
lines changed

Sentry.xcodeproj/project.pbxproj

Lines changed: 35 additions & 0 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+Common.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4AF7D292E940492004F0F59 /* SentryUIRedactBuilderTests+Common.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, ); }; };
@@ -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+Common.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentryUIRedactBuilderTests+Common.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>"; };
@@ -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 */,
42374242
D8F67AF22BE10F7600C9197B /* SentryUIRedactBuilderTests.swift */,
4243+
D4AF7D292E940492004F0F59 /* 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 = "";
@@ -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+Common.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)