-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debugRender and HtmlSnapshotTesting (#29)
* Add debugRender and HtmlSnapshotTesting * Check out submodules * Fix Package.swift * Explicit * Fix Linux * Update HtmlSnapshotTestingTests.swift * Update README.md * Update README.md * Update README.md * Update Makefile * Update README.md * Update HtmlSnapshotTesting.podspec * Update HtmlSnapshotTesting.podspec * Bump
- Loading branch information
1 parent
31768ae
commit 5ed8ddc
Showing
22 changed files
with
2,411 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "Carthage/Checkouts/swift-snapshot-testing"] | ||
path = Carthage/Checkouts/swift-snapshot-testing | ||
url = https://github.com/pointfreeco/swift-snapshot-testing.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github "pointfreeco/swift-snapshot-testing" ~> 1.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github "pointfreeco/swift-snapshot-testing" "1.1.0" |
Submodule swift-snapshot-testing
added at
129e39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "Html" | ||
s.version = "0.1.3" | ||
s.summary = "A Swift DSL for type-safe, extensible, and transformable HTML documents." | ||
|
||
s.description = <<-DESC | ||
The popular choice for rendering HTML in Swift these days is to use | ||
templating languages, but they expose your application to runtime errors and | ||
invalid HTML. Our library prevents these runtime issues at compile-time by | ||
embedding HTML directly into Swift’s powerful type system. | ||
DESC | ||
|
||
s.homepage = "https://github.com/pointfreeco/swift-html" | ||
|
||
s.license = "MIT" | ||
|
||
s.authors = { | ||
"Stephen Celis" => "stephen@stephencelis.com", | ||
"Brandon Williams" => "mbw234@gmail.com" | ||
} | ||
s.social_media_url = "https://twitter.com/pointfreeco" | ||
|
||
s.source = { | ||
:git => "https://github.com/pointfreeco/swift-html.git", | ||
:tag => s.version | ||
} | ||
|
||
s.swift_version = "4.2.1" | ||
|
||
s.ios.deployment_target = "8.0" | ||
s.osx.deployment_target = "10.9" | ||
s.tvos.deployment_target = "9.0" | ||
s.watchos.deployment_target = "2.0" | ||
|
||
s.source_files = "Sources/Html/**/*.swift" | ||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
106 changes: 106 additions & 0 deletions
106
Html.xcodeproj/xcshareddata/xcschemes/HtmlSnapshotTesting_iOS.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1000" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_5881CD49A13FAFE4B62A050F5942B296" | ||
BuildableName = "HtmlSnapshotTesting.framework" | ||
BlueprintName = "HtmlSnapshotTesting_iOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_2DC28C2207FB2259D050202830AD64D1" | ||
BuildableName = "HtmlSnapshotTestingTests.xctest" | ||
BlueprintName = "HtmlSnapshotTestingTests_iOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_5881CD49A13FAFE4B62A050F5942B296" | ||
BuildableName = "HtmlSnapshotTesting.framework" | ||
BlueprintName = "HtmlSnapshotTesting_iOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<CommandLineArguments> | ||
</CommandLineArguments> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</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"> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_5881CD49A13FAFE4B62A050F5942B296" | ||
BuildableName = "HtmlSnapshotTesting.framework" | ||
BlueprintName = "HtmlSnapshotTesting_iOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<CommandLineArguments> | ||
</CommandLineArguments> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_5881CD49A13FAFE4B62A050F5942B296" | ||
BuildableName = "HtmlSnapshotTesting.framework" | ||
BlueprintName = "HtmlSnapshotTesting_iOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<CommandLineArguments> | ||
</CommandLineArguments> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
106 changes: 106 additions & 0 deletions
106
Html.xcodeproj/xcshareddata/xcschemes/HtmlSnapshotTesting_macOS.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1000" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_35F4D7F166DB6BD11B0FE52D126BA796" | ||
BuildableName = "HtmlSnapshotTesting.framework" | ||
BlueprintName = "HtmlSnapshotTesting_macOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_2AB5827BD5D16BFB6725C893076C6FDF" | ||
BuildableName = "HtmlSnapshotTestingTests.xctest" | ||
BlueprintName = "HtmlSnapshotTestingTests_macOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_35F4D7F166DB6BD11B0FE52D126BA796" | ||
BuildableName = "HtmlSnapshotTesting.framework" | ||
BlueprintName = "HtmlSnapshotTesting_macOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<CommandLineArguments> | ||
</CommandLineArguments> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</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"> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_35F4D7F166DB6BD11B0FE52D126BA796" | ||
BuildableName = "HtmlSnapshotTesting.framework" | ||
BlueprintName = "HtmlSnapshotTesting_macOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<CommandLineArguments> | ||
</CommandLineArguments> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_35F4D7F166DB6BD11B0FE52D126BA796" | ||
BuildableName = "HtmlSnapshotTesting.framework" | ||
BlueprintName = "HtmlSnapshotTesting_macOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<CommandLineArguments> | ||
</CommandLineArguments> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
106 changes: 106 additions & 0 deletions
106
Html.xcodeproj/xcshareddata/xcschemes/HtmlSnapshotTesting_tvOS.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1000" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_8DA0D6B0D3FB381C06CED88C8D8EB1F3" | ||
BuildableName = "HtmlSnapshotTesting.framework" | ||
BlueprintName = "HtmlSnapshotTesting_tvOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_DD09D77AEA211941B06E7B13605F9DF1" | ||
BuildableName = "HtmlSnapshotTestingTests.xctest" | ||
BlueprintName = "HtmlSnapshotTestingTests_tvOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_8DA0D6B0D3FB381C06CED88C8D8EB1F3" | ||
BuildableName = "HtmlSnapshotTesting.framework" | ||
BlueprintName = "HtmlSnapshotTesting_tvOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<CommandLineArguments> | ||
</CommandLineArguments> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</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"> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_8DA0D6B0D3FB381C06CED88C8D8EB1F3" | ||
BuildableName = "HtmlSnapshotTesting.framework" | ||
BlueprintName = "HtmlSnapshotTesting_tvOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<CommandLineArguments> | ||
</CommandLineArguments> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "NT_8DA0D6B0D3FB381C06CED88C8D8EB1F3" | ||
BuildableName = "HtmlSnapshotTesting.framework" | ||
BlueprintName = "HtmlSnapshotTesting_tvOS" | ||
ReferencedContainer = "container:Html.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<CommandLineArguments> | ||
</CommandLineArguments> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
Oops, something went wrong.