Skip to content

Commit fd1635a

Browse files
authored
Update README.md
1 parent eac4e63 commit fd1635a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
11
# swift-snapshot-testing-plugin-heic
2+
3+
# swift-snapshot-testing-plugin-heic
4+
5+
This repo is an experimental use of this branch(https://github.com/pointfreeco/swift-snapshot-testing/pull/904) that contains a PluginAPI for `swift-snapshot-testing`.
6+
7+
The goal of this is to show how easy it is to build a plugin.
8+
9+
## Usage
10+
11+
- Add this project to dependencies inside your `Package.swift` -> `.package(url: "https://github.com/mackoj/swift-snapshot-testing-plugin-heic.git", revision: "0.0.1"),`.
12+
- Then add this to your test target `.product(name: "HEICImageSerializer", package: "swift-snapshot-testing-plugin-heic"),`.
13+
- Then add this to the top of your test file `import HEICImageSerializer` and in the `setUp()` add this `SnapshotTesting.imageFormat = HEICImageSerializer.imageFormat`.
14+
15+
## TODO
16+
17+
- [ ] use [libjxl](https://github.com/libjxl/libjxl) instead of [JXLCoder]([url](https://github.com/awxkee/jxl-coder-swift.git)).
18+
- [ ] make the API ready for Swift 6 and async/throwing functions
19+
- [ ] create a tests suite
20+
- [ ] add documentations
21+
- [ ] add tutorials

0 commit comments

Comments
 (0)