Add a mac test plan to improve our confidence in fixes going into RN moving forward. Check for safe memory usage and concurrency problems (#190)

This commit is contained in:
HeyImChris 2019-11-11 17:34:21 -08:00 коммит произвёл GitHub
Родитель c610b2e93c
Коммит dac509cd76
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 63 добавлений и 1 удалений

Просмотреть файл

@ -0,0 +1,54 @@
{
"configurations" : [
{
"id" : "AFD9E2BD-E33C-4C4A-A384-5EAE06C9A403",
"name" : "Memory Checking",
"options" : {
"addressSanitizer" : {
"detectStackUseAfterReturn" : true,
"enabled" : true
},
"nsZombieEnabled" : true
}
},
{
"id" : "25FE48EC-9A2D-4569-A6B2-13F09014C2AB",
"name" : "Concurrency",
"options" : {
"testExecutionOrdering" : "random",
"undefinedBehaviorSanitizerEnabled" : true
}
}
],
"defaultOptions" : {
"codeCoverage" : false,
"environmentVariableEntries" : [
{
"key" : "CI_USE_PACKAGER",
"value" : "1"
}
],
"targetForVariableExpansion" : {
"containerPath" : "container:RNTester.xcodeproj",
"identifier" : "18FC77851EF4770B002B3F17",
"name" : "RNTester-macOS"
}
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:RNTester.xcodeproj",
"identifier" : "18FC779A1EF4770B002B3F17",
"name" : "RNTester-macOSUnitTests"
}
},
{
"target" : {
"containerPath" : "container:RNTester.xcodeproj",
"identifier" : "18FC77A51EF4770B002B3F17",
"name" : "RNTester-macOSIntegrationTests"
}
}
],
"version" : 1
}

Просмотреть файл

@ -916,6 +916,7 @@
8385CF051B8747A000C6273E /* RCTImageLoaderHelpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTImageLoaderHelpers.h; sourceTree = "<group>"; };
9F1534BD233AB44F006DFE44 /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
9F1C4D00236CB06B0022EC0D /* RNTesterTestPlan_iOS.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = RNTesterTestPlan_iOS.xctestplan; sourceTree = "<group>"; };
9F4D1F022375E7A10012B4A9 /* RNTesterTestPlan_mac.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = RNTesterTestPlan_mac.xctestplan; sourceTree = "<group>"; };
9F5C1923230F46CB00E3E5A7 /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
9FBFA513233C7E4C003D9A8D /* RNTesterBundle-macOS.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "RNTesterBundle-macOS.bundle"; sourceTree = BUILT_PRODUCTS_DIR; };
9FBFA515233C7E4C003D9A8D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@ -1362,6 +1363,7 @@
18FC77871EF4770B002B3F17 /* RNTester-macOS */ = {
isa = PBXGroup;
children = (
9F4D1F022375E7A10012B4A9 /* RNTesterTestPlan_mac.xctestplan */,
18FC77881EF4770B002B3F17 /* AppDelegate.h */,
18FC77891EF4770B002B3F17 /* AppDelegate.m */,
18FC778E1EF4770B002B3F17 /* ViewController.h */,

Просмотреть файл

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
version = "1.3">
version = "1.7">
<BuildAction
parallelizeBuildables = "NO"
buildImplicitDependencies = "YES">
@ -64,6 +64,12 @@
ReferencedContainer = "container:RNTester.xcodeproj">
</BuildableReference>
</MacroExpansion>
<TestPlans>
<TestPlanReference
reference = "container:RNTester-macOS/RNTesterTestPlan_mac.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO">