Skip to content

Commit

Permalink
Add debugRender and HtmlSnapshotTesting (#29)
Browse files Browse the repository at this point in the history
* 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
stephencelis authored Jan 8, 2019
1 parent 31768ae commit 5ed8ddc
Show file tree
Hide file tree
Showing 22 changed files with 2,411 additions and 223 deletions.
11 changes: 9 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,18 @@ jobs:
command: system_profiler SPSoftwareDataType

- run:
name: Print Devices
name: Simulator Info
command: instruments -s devices

- run:
name: Check out dependencies
command: git submodule update --init --recursive

- run:
name: Run Swift tests
command: make test-swift
environment:
SNAPSHOT_ARTIFACTS: $CIRCLE_ARTIFACTS
SNAPSHOT_ARTIFACTS: /tmp/__SnapshotArtifacts__

- store_artifacts:
path: /tmp/__SnapshotArtifacts__
3 changes: 3 additions & 0 deletions .gitmodules
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
1 change: 1 addition & 0 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "pointfreeco/swift-snapshot-testing" ~> 1.1.0
1 change: 1 addition & 0 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "pointfreeco/swift-snapshot-testing" "1.1.0"
1 change: 1 addition & 0 deletions Carthage/Checkouts/swift-snapshot-testing
Submodule swift-snapshot-testing added at 129e39
36 changes: 36 additions & 0 deletions Html.podspec
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
1,362 changes: 1,153 additions & 209 deletions Html.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

106 changes: 106 additions & 0 deletions Html.xcodeproj/xcshareddata/xcschemes/HtmlSnapshotTesting_iOS.xcscheme
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>
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>
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>
Loading

0 comments on commit 5ed8ddc

Please sign in to comment.