Git Product home page Git Product logo

fbsnapshotsviewer's Introduction

FBSnapshotsViewer

Build Status codebeat badge codecov

A macOs application that shows the failing snapshot tests from FBSnapshotTestCase because it's a pain to parse the console logs by myself.

Why FBSnapshotsViewer?

I've been using an amazing plugin 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

Example

How it works?

The idea behind the job is quite tricky, but the overall concept is straightforward:

  1. The app listens for the changes in Xcode DerivedData folder;
  2. When the app finds new .log file generated by Xcode it starts parsing it;
  3. Through the parsing it extracts the generated information by iOS snapshot tests framework and shows in UI

Installation

FBSnapshotsViewer application

At the moment there is only one option to install the app: Navigate to releases and download the latest FBSnapshotsViewer-xyz.app.zip release.

We encourage you to turn automatic update on, so you'll be always up to date ๐Ÿš€

Usage

As simple as just run the app and run tests in your app ๐ŸŽ‰

App Code

For the AppCode support the app needs to know where is a folder with generated test logs: Open FBSnapshotsViewer -> Right click -> Preferences -> Set derived data folder path as a path like ~/Library/Caches/AppCodeXYZ where XYZ is an AppCode version. Usually you'll have only one such folder under the Caches directory.

Contribution

Contributions to FBSnapshotsViewer are welcomed and encouraged! Please see the Contributing guide for more details.

License

FBSnapshotsViewer is available under the MIT license. See LICENSE for more information.

fbsnapshotsviewer's People

Contributors

antondomashnev avatar babbage avatar readmecritic avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.