Start CoreTests and add to test plans.
This commit is contained in:
parent
6176f31392
commit
01e37824a8
@ -0,0 +1,54 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "1530"
|
||||||
|
version = "1.7">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES"
|
||||||
|
buildArchitectures = "Automatic">
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
shouldAutocreateTestPlan = "YES">
|
||||||
|
<Testables>
|
||||||
|
<TestableReference
|
||||||
|
skipped = "NO">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "CoreTests"
|
||||||
|
BuildableName = "CoreTests"
|
||||||
|
BlueprintName = "CoreTests"
|
||||||
|
ReferencedContainer = "container:">
|
||||||
|
</BuildableReference>
|
||||||
|
</TestableReference>
|
||||||
|
</Testables>
|
||||||
|
</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">
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
@ -1,12 +0,0 @@
|
|||||||
import XCTest
|
|
||||||
@testable import Core
|
|
||||||
|
|
||||||
final class CoreTests: XCTestCase {
|
|
||||||
func testExample() throws {
|
|
||||||
// XCTest Documentation
|
|
||||||
// https://developer.apple.com/documentation/xctest
|
|
||||||
|
|
||||||
// Defining Test Cases and Test Methods
|
|
||||||
// https://developer.apple.com/documentation/xctest/defining_test_cases_and_test_methods
|
|
||||||
}
|
|
||||||
}
|
|
22
Core/Tests/CoreTests/MacroProcessorTests.swift
Normal file
22
Core/Tests/CoreTests/MacroProcessorTests.swift
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
//
|
||||||
|
// MacroProcessorTests.swift
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Created by Brent Simmons on 5/20/24.
|
||||||
|
//
|
||||||
|
|
||||||
|
import XCTest
|
||||||
|
import Core
|
||||||
|
|
||||||
|
final class MacroProcessorTests: XCTestCase {
|
||||||
|
|
||||||
|
func testOneMacro() {
|
||||||
|
|
||||||
|
let template = "<html><head><body>{content}</body></head></html>"
|
||||||
|
let substitutions = ["content": "This is the content."]
|
||||||
|
|
||||||
|
let renderedText = try! MacroProcessor.renderedText(withTemplate: template, substitutions: substitutions, macroStart: "{", macroEnd: "}")
|
||||||
|
let expectedText = "<html><head><body>This is the content.</body></head></html>"
|
||||||
|
XCTAssertEqual(renderedText, expectedText)
|
||||||
|
}
|
||||||
|
}
|
@ -43,6 +43,14 @@
|
|||||||
"identifier" : "TreeTests",
|
"identifier" : "TreeTests",
|
||||||
"name" : "TreeTests"
|
"name" : "TreeTests"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"parallelizable" : true,
|
||||||
|
"target" : {
|
||||||
|
"containerPath" : "container:",
|
||||||
|
"identifier" : "CoreTests",
|
||||||
|
"name" : "CoreTests"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version" : 1
|
"version" : 1
|
||||||
|
@ -19,6 +19,22 @@
|
|||||||
"identifier" : "FoundationExtrasTests",
|
"identifier" : "FoundationExtrasTests",
|
||||||
"name" : "FoundationExtrasTests"
|
"name" : "FoundationExtrasTests"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"parallelizable" : true,
|
||||||
|
"target" : {
|
||||||
|
"containerPath" : "container:",
|
||||||
|
"identifier" : "CoreTests",
|
||||||
|
"name" : "CoreTests"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"parallelizable" : true,
|
||||||
|
"target" : {
|
||||||
|
"containerPath" : "container:..\/Tree",
|
||||||
|
"identifier" : "TreeTests",
|
||||||
|
"name" : "TreeTests"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version" : 1
|
"version" : 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user