Skip to content

Commit 3a184c5

Browse files
committed
test(session-replay): Add masking tests for common cases (#6567)
1 parent ccfa138 commit 3a184c5

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
@@ -803,6 +803,7 @@
803803
D43B26D62D70964C007747FD /* SentrySpanOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = D43B26D52D709648007747FD /* SentrySpanOperation.m */; };
804804
D43B26D82D70A550007747FD /* SentryTraceOrigin.m in Sources */ = {isa = PBXBuildFile; fileRef = D43B26D72D70A54A007747FD /* SentryTraceOrigin.m */; };
805805
D43B26DA2D70A612007747FD /* SentrySpanDataKey.m in Sources */ = {isa = PBXBuildFile; fileRef = D43B26D92D70A60E007747FD /* SentrySpanDataKey.m */; };
806+
D43C1BE82E8FB85400CD5D67 /* SnapshotTesting in Frameworks */ = {isa = PBXBuildFile; productRef = D43C1BE72E8FB85400CD5D67 /* SnapshotTesting */; };
806807
D4411DD52E02B74900EA4987 /* ArrayAccessesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4411DD42E02B74100EA4987 /* ArrayAccessesTests.swift */; };
807808
D44B16722DE464AD006DBDB3 /* TestDispatchFactoryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D44B16712DE464A9006DBDB3 /* TestDispatchFactoryTests.swift */; };
808809
D451ED5D2D92ECD200C9BEA8 /* SentryOnDemandReplayError.swift in Sources */ = {isa = PBXBuildFile; fileRef = D451ED5C2D92ECD200C9BEA8 /* SentryOnDemandReplayError.swift */; };
@@ -849,6 +850,7 @@
849850
D4AF00212D2E92FD00F5F3D7 /* SentryNSFileManagerSwizzling.m in Sources */ = {isa = PBXBuildFile; fileRef = D4AF00202D2E92FD00F5F3D7 /* SentryNSFileManagerSwizzling.m */; };
850851
D4AF00232D2E931000F5F3D7 /* SentryNSFileManagerSwizzling.h in Headers */ = {isa = PBXBuildFile; fileRef = D4AF00222D2E931000F5F3D7 /* SentryNSFileManagerSwizzling.h */; };
851852
D4AF00252D2E93C400F5F3D7 /* SentryNSFileManagerSwizzlingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D4AF00242D2E93C400F5F3D7 /* SentryNSFileManagerSwizzlingTests.m */; };
853+
D4AF7D2A2E940493004F0F59 /* SentryUIRedactBuilderTests+Common.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4AF7D292E940492004F0F59 /* SentryUIRedactBuilderTests+Common.swift */; };
852854
D4B0DC7F2DA9257A00DE61B6 /* SentryRenderVideoResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4B0DC7E2DA9257200DE61B6 /* SentryRenderVideoResult.swift */; };
853855
D4C5F59A2D4249E6002A9BF6 /* DataSentryTracingIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4C5F5992D4249E0002A9BF6 /* DataSentryTracingIntegrationTests.swift */; };
854856
D4CA34832E378C9900E92A61 /* SentryArrayTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4CA34822E378C9000E92A61 /* SentryArrayTests.swift */; };
@@ -2198,6 +2200,7 @@
21982200
D4AF00202D2E92FD00F5F3D7 /* SentryNSFileManagerSwizzling.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryNSFileManagerSwizzling.m; sourceTree = "<group>"; };
21992201
D4AF00222D2E931000F5F3D7 /* SentryNSFileManagerSwizzling.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryNSFileManagerSwizzling.h; path = include/SentryNSFileManagerSwizzling.h; sourceTree = "<group>"; };
22002202
D4AF00242D2E93C400F5F3D7 /* SentryNSFileManagerSwizzlingTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryNSFileManagerSwizzlingTests.m; sourceTree = "<group>"; };
2203+
D4AF7D292E940492004F0F59 /* SentryUIRedactBuilderTests+Common.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentryUIRedactBuilderTests+Common.swift"; sourceTree = "<group>"; };
22012204
D4B0DC7E2DA9257200DE61B6 /* SentryRenderVideoResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryRenderVideoResult.swift; sourceTree = "<group>"; };
22022205
D4BCA0C22DA93C25009E49AB /* SentrySessionReplayIntegration+Test.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SentrySessionReplayIntegration+Test.h"; sourceTree = "<group>"; };
22032206
D4C5F5992D4249E0002A9BF6 /* DataSentryTracingIntegrationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataSentryTracingIntegrationTests.swift; sourceTree = "<group>"; };
@@ -2529,6 +2532,7 @@
25292532
buildActionMask = 2147483647;
25302533
files = (
25312534
8431F01C29B2854200D8DC56 /* libSentryTestUtils.a in Frameworks */,
2535+
D43C1BE82E8FB85400CD5D67 /* SnapshotTesting in Frameworks */,
25322536
D84DAD592B1742C1003CF120 /* SentryTestUtilsDynamic.framework in Frameworks */,
25332537
63AA766A1EB8CB2F00D153DE /* Sentry.framework in Frameworks */,
25342538
);
@@ -4243,8 +4247,10 @@
42434247
D4009EA02D77196F0007AF30 /* ViewCapture */ = {
42444248
isa = PBXGroup;
42454249
children = (
4250+
D4AF802E2E965188004F0F59 /* __Snapshots__ */,
42464251
D82915622C85EF0C00A6CDD4 /* SentryViewPhotographerTests.swift */,
42474252
D8F67AF22BE10F7600C9197B /* SentryUIRedactBuilderTests.swift */,
4253+
D4AF7D292E940492004F0F59 /* SentryUIRedactBuilderTests+Common.swift */,
42484254
D45E2D762E003EBF0072A6B7 /* TestRedactOptions.swift */,
42494255
);
42504256
path = ViewCapture;
@@ -4349,6 +4355,13 @@
43494355
path = Screenshot;
43504356
sourceTree = "<group>";
43514357
};
4358+
D4AF802E2E965188004F0F59 /* __Snapshots__ */ = {
4359+
isa = PBXGroup;
4360+
children = (
4361+
);
4362+
path = __Snapshots__;
4363+
sourceTree = "<group>";
4364+
};
43524365
D4A0C22A2E9E3CE100791353 /* InfoPlist */ = {
43534366
isa = PBXGroup;
43544367
children = (
@@ -5346,6 +5359,7 @@
53465359
);
53475360
name = SentryTests;
53485361
packageProductDependencies = (
5362+
D43C1BE72E8FB85400CD5D67 /* SnapshotTesting */,
53495363
);
53505364
productName = "Tests-iOS";
53515365
productReference = 63AA76651EB8CB2F00D153DE /* SentryTests.xctest */;
@@ -5516,6 +5530,7 @@
55165530
);
55175531
mainGroup = 6327C5C91EB8A783004E799B;
55185532
packageReferences = (
5533+
D43C1BE62E8FB85400CD5D67 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */,
55195534
);
55205535
productRefGroup = 6327C5D41EB8A783004E799B /* Products */;
55215536
projectDirPath = "";
@@ -6156,6 +6171,7 @@
61566171
62F4DDA12C04CB9700588890 /* SentryBaggageSerializationTests.swift in Sources */,
61576172
7BE912AF272166DD00E49E62 /* SentryNoOpSpanTests.swift in Sources */,
61586173
D4F2B5352D0C69D500649E42 /* SentryCrashCTests.swift in Sources */,
6174+
D4AF7D2A2E940493004F0F59 /* SentryUIRedactBuilderTests+Common.swift in Sources */,
61596175
7B56D73524616E5600B842DA /* SentryConcurrentRateLimitsDictionaryTests.swift in Sources */,
61606176
7B7D8730248648AD00D2ECFF /* SentryStacktraceBuilderTests.swift in Sources */,
61616177
FA21A2EF2E60E9CB00E7EADB /* EnvelopeComparison.swift in Sources */,
@@ -8953,6 +8969,25 @@
89538969
defaultConfigurationName = Release;
89548970
};
89558971
/* End XCConfigurationList section */
8972+
8973+
/* Begin XCRemoteSwiftPackageReference section */
8974+
D43C1BE62E8FB85400CD5D67 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */ = {
8975+
isa = XCRemoteSwiftPackageReference;
8976+
repositoryURL = "https://github.com/pointfreeco/swift-snapshot-testing";
8977+
requirement = {
8978+
kind = upToNextMajorVersion;
8979+
minimumVersion = 1.18.7;
8980+
};
8981+
};
8982+
/* End XCRemoteSwiftPackageReference section */
8983+
8984+
/* Begin XCSwiftPackageProductDependency section */
8985+
D43C1BE72E8FB85400CD5D67 /* SnapshotTesting */ = {
8986+
isa = XCSwiftPackageProductDependency;
8987+
package = D43C1BE62E8FB85400CD5D67 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */;
8988+
productName = SnapshotTesting;
8989+
};
8990+
/* End XCSwiftPackageProductDependency section */
89568991
};
89578992
rootObject = 6327C5CA1EB8A783004E799B /* Project object */;
89588993
}

0 commit comments

Comments
 (0)