Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formalize Inline Snapshot Testing #764

Merged
merged 39 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
0345857
wip
stephencelis Aug 5, 2023
1fa2cc0
wip
stephencelis Aug 5, 2023
ee4a581
wip
stephencelis Aug 5, 2023
2f045fe
wip
stephencelis Aug 5, 2023
4154b59
wip
stephencelis Aug 7, 2023
d09e4f4
wip
stephencelis Aug 7, 2023
a090860
wip
stephencelis Aug 7, 2023
946d3f4
wip
stephencelis Aug 7, 2023
562106f
wip
stephencelis Aug 7, 2023
1280dac
wip
mbrandonw Aug 8, 2023
b7beb48
wip
stephencelis Aug 8, 2023
4e3db78
fix
stephencelis Aug 8, 2023
55c10ae
beta 6
stephencelis Aug 8, 2023
2198de2
wip
stephencelis Aug 8, 2023
05ad9e8
wip
stephencelis Aug 11, 2023
d79c4fd
wip
stephencelis Aug 11, 2023
1420166
wip
stephencelis Aug 11, 2023
9323ff8
wip
stephencelis Aug 11, 2023
6368922
wip
stephencelis Aug 12, 2023
4bc3a38
wip
stephencelis Aug 29, 2023
97689ec
wip
stephencelis Aug 29, 2023
9ba00d9
wip
stephencelis Aug 29, 2023
2c231e2
Merge remote-tracking branch 'origin/main' into swift-syntax
stephencelis Sep 7, 2023
0624444
wip
stephencelis Sep 8, 2023
4e802d8
wip
stephencelis Sep 8, 2023
731a5c2
wip
stephencelis Sep 8, 2023
c1fcd80
fix
stephencelis Sep 8, 2023
a58c4b4
wip
stephencelis Sep 8, 2023
951aaf9
wip
stephencelis Sep 9, 2023
308c734
wip
stephencelis Sep 10, 2023
9aefe91
wip
stephencelis Sep 10, 2023
1a9ab7b
wip
stephencelis Sep 10, 2023
423d77f
wip
stephencelis Sep 11, 2023
963bb84
wip
stephencelis Sep 11, 2023
3a26e16
wip
stephencelis Sep 11, 2023
d61f03a
wip
stephencelis Sep 11, 2023
5075bf1
small things
mbrandonw Sep 12, 2023
fb3a21f
wip
stephencelis Sep 12, 2023
2b5d640
DocC + swift-format (#765)
stephencelis Sep 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ jobs:
strategy:
matrix:
xcode:
- "13.2.1" # Swift 5.5.2
- "13.4.1" # Swift 5.6.1
- "14.0" # Swift 5.7
- "14.3.1"

name: macOS 12 (Xcode ${{ matrix.xcode }})
runs-on: macos-12
name: macOS 13 (Xcode ${{ matrix.xcode }})
runs-on: macos-13
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run tests
Expand All @@ -30,8 +28,6 @@ jobs:
strategy:
matrix:
swift:
- "5.5"
- "5.6"
- "5.7"

name: Ubuntu (Swift ${{ matrix.swift }})
Expand All @@ -40,16 +36,14 @@ jobs:
- uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: swift test

windows:
strategy:
matrix:
swift:
- "5.5"
- "5.6"
#- "5.7"
- "5.8"

name: Windows (Swift ${{ matrix.swift }})
runs-on: windows-2019
Expand All @@ -65,6 +59,6 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf

- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: swift build
- run: swift test
16 changes: 16 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"object": {
"pins": [
{
"package": "swift-syntax",
"repositoryURL": "https://github.com/apple/swift-syntax.git",
"state": {
"branch": null,
"revision": "7bb5231dad28c6dceabf7a439867f39d2c105e4f",
"version": "509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-09-05-a"
}
}
]
},
"version": 1
}
47 changes: 39 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,28 +1,59 @@
// swift-tools-version:5.5
// swift-tools-version:5.7

import PackageDescription

let package = Package(
name: "swift-snapshot-testing",
platforms: [
.iOS(.v11),
.macOS(.v10_10),
.tvOS(.v10),
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v6),
],
products: [
.library(
name: "SnapshotTesting",
targets: ["SnapshotTesting"]
),
.library(
name: "InlineSnapshotTesting",
targets: ["InlineSnapshotTesting"]
),
],
dependencies: [
.package(
url: "https://github.com/apple/swift-syntax.git",
from: "509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-09-05-a"
)
],
targets: [
.target(name: "SnapshotTesting"),
.target(
name: "SnapshotTesting"
),
.target(
name: "InlineSnapshotTesting",
dependencies: [
"SnapshotTesting",
.product(name: "SwiftParser", package: "swift-syntax"),
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftSyntaxBuilder", package: "swift-syntax"),
]
),
.testTarget(
name: "InlineSnapshotTestingTests",
dependencies: [
"InlineSnapshotTesting"
]
),
.testTarget(
name: "SnapshotTestingTests",
dependencies: ["SnapshotTesting"],
dependencies: [
"SnapshotTesting"
],
exclude: [
"__Fixtures__",
"__Snapshots__"
"__Snapshots__",
]
)
),
]
)
Loading