Coder Social home page Coder Social logo

snapshots's Introduction

Snapshots for Xcode

An Xcode Plugin to show the state of FBSnapshot Tests.

I think Facebook have view testing right. I don't think Xcode's quite there yet, so I built a plugin to fix this.

Screenshot

Features

  • Showing new images as they're created
  • Showing the differences between failed snapshot tests
  • Open specific or all diffs in Kaleidoscope

Installation

Install Alcatraz. In XCode choose Window, Package Manager and search for "Snapshots". Alternatively, clone this repo and hit build, then restart Xcode. Alcatraz is better, you get updates with no effort.

Contributing

It's actually way easier to work on Plugins than you think. Hitting run in Xcode on this project will open a new Xcode with a working lldb instance and you can work on it like any other app. Contributions are extremely welcome of course, large visual design changes should probably be talked about in an issue first FWIW.

Unknowns

Currently this only works if you're using XCTests or Expecta. Kiwi has it's own test runner, and I've been focusing on what I use personally.

If you're using Expecta I really recommend my buddy dB's extension for Expecta: EXPMatchers+FBSnapshotTest. It automates the whole setup process + adds nice language around tests.

snapshots's People

Contributors

orta avatar ashfurrow avatar neonichu avatar dblock avatar netbe avatar

Watchers

James Cloos avatar Martin Rechenberger 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.