Skip to content

Commit

Permalink
Use local neon in sample project (#30)
Browse files Browse the repository at this point in the history
* reference local Neon from test project

* add test plan to execute Neon package tests from sample

* store schemes to set the test plan
  • Loading branch information
DivineDominion authored Nov 18, 2023
1 parent a369b1c commit cc54c78
Show file tree
Hide file tree
Showing 5 changed files with 199 additions and 9 deletions.
4 changes: 4 additions & 0 deletions Projects/NeonExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
5077D7FF2B08D1F1000A15B8 /* Neon */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = Neon; path = ..; sourceTree = "<group>"; };
5077D8012B08DF5D000A15B8 /* NeonExample.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = NeonExample.xctestplan; sourceTree = "<group>"; };
C9610B3228C6AD4F008ADDE6 /* NeonExample-iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "NeonExample-iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
C9610B3428C6AD4F008ADDE6 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
C9610B3628C6AD4F008ADDE6 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -86,6 +88,8 @@
C9A60F7928C68FD9006883EC = {
isa = PBXGroup;
children = (
5077D8012B08DF5D000A15B8 /* NeonExample.xctestplan */,
5077D7FF2B08D1F1000A15B8 /* Neon */,
C9A60F8428C68FD9006883EC /* NeonExample */,
C9610B3328C6AD4F008ADDE6 /* NeonExample-iOS */,
C9A60F8328C68FD9006883EC /* Products */,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
{
"pins" : [
{
"identity" : "neon",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ChimeHQ/Neon.git",
"state" : {
"branch" : "main",
"revision" : "4bc0fe43c46e2c08cf522d5db86666086b6e641e"
}
},
{
"identity" : "rearrange",
"kind" : "remoteSourceControl",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C9610B3128C6AD4F008ADDE6"
BuildableName = "NeonExample-iOS.app"
BlueprintName = "NeonExample-iOS"
ReferencedContainer = "container:NeonExample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:NeonExample.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C9610B3128C6AD4F008ADDE6"
BuildableName = "NeonExample-iOS.app"
BlueprintName = "NeonExample-iOS"
ReferencedContainer = "container:NeonExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C9610B3128C6AD4F008ADDE6"
BuildableName = "NeonExample-iOS.app"
BlueprintName = "NeonExample-iOS"
ReferencedContainer = "container:NeonExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C9A60F8128C68FD9006883EC"
BuildableName = "NeonExample.app"
BlueprintName = "NeonExample"
ReferencedContainer = "container:NeonExample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:NeonExample.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C9A60F8128C68FD9006883EC"
BuildableName = "NeonExample.app"
BlueprintName = "NeonExample"
ReferencedContainer = "container:NeonExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C9A60F8128C68FD9006883EC"
BuildableName = "NeonExample.app"
BlueprintName = "NeonExample"
ReferencedContainer = "container:NeonExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
31 changes: 31 additions & 0 deletions Projects/NeonExample.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"configurations" : [
{
"id" : "D94B5F04-903A-4976-996C-0514F18D645C",
"name" : "Configuration 1",
"options" : {

}
}
],
"defaultOptions" : {

},
"testTargets" : [
{
"target" : {
"containerPath" : "container:..",
"identifier" : "NeonTests",
"name" : "NeonTests"
}
},
{
"target" : {
"containerPath" : "container:..",
"identifier" : "TreeSitterClientTests",
"name" : "TreeSitterClientTests"
}
}
],
"version" : 1
}

0 comments on commit cc54c78

Please sign in to comment.