- Notifications
You must be signed in to change notification settings - Fork15
A mac os application that shows the failing snapshot tests from FBSnapshotTestCase
License
Antondomashnev/FBSnapshotsViewer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A macOs application that shows the failing snapshot tests fromFBSnapshotTestCase because it's a pain to parse the console logs by myself.
I've been using an amazingplugin to check the failing test's snapshots, but unfortunately, with Xcode 8 the plugins are not officially supported anymore, so I've decided to build an app which will work regardless Apple's decisions about Xcode and plugins ecosystem.
There are some benefits using it:
- Real-time feedback about failed snapshot test.
- Real-time feedback about recorded snapshot test.
- Clear output with reference | diff | failed image
- Split and diff mode to see exact differences
- One click to use failed image as a recorded
- Xcode and AppCode support
The idea behind the job is quite tricky, but the overall concept is straightforward:
- The app listens for the changes in Xcode DerivedData folder;
- When the app finds new .log file generated by Xcode it starts parsing it;
- Through the parsing it extracts the generated information by iOS snapshot tests framework and shows in UI
At the moment there is only one option to install the app:Navigate toreleases and download the latestFBSnapshotsViewer-xyz.app.zip
release.
We encourage you to turn automatic update on, so you'll be always up to date 🚀
As simple as just run the app and run tests in your app 🎉
For the AppCode support the app needs to know where is a folder with generated test logs:OpenFBSnapshotsViewer
->Right click
->Preferences
-> Set derived data folder path as a path like~/Library/Caches/AppCodeXYZ
whereXYZ
is an AppCode version. Usually you'll have only one such folder under theCaches
directory.
Contributions to FBSnapshotsViewer are welcomed and encouraged!Please see theContributing guide for more details.
FBSnapshotsViewer is available under the MIT license. SeeLICENSE for more information.
About
A mac os application that shows the failing snapshot tests from FBSnapshotTestCase
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.