Skip to content

Commit 316e86f

Browse files
authored
Update README.md
1 parent 40142ef commit 316e86f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

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

0 commit comments

Comments
 (0)