Snapshots

An Xcode Plugin to show the state of FBSnapshot Tests.

Github星跟踪图

Snapshots for Xcode

Xcode plugins don't work anymore, so you should help @antondomashnev with https://github.com/Antondomashnev/FBSnapshotsViewer

Which is the sucessor to this plugin.


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, so I built a plugin to fix it.

Screenshot

Features

  • Showing new images as they're created
  • Showing the differences between failed snapshot tests
  • Open specific diffs in Kaleidoscope
  • Turns red if you've created a view with a zero frame

Installation

Install via Alcatraz. In Xcode choose Window, Package Manager and search for "Snapshots".

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.

主要指标

概览
名称与所有者orta/Snapshots
主编程语言Objective-C
编程语言Objective-C (语言数: 4)
平台
许可证BSD 2-Clause "Simplified" License
所有者活动
创建于2014-06-17 22:19:25
推送于2017-05-18 02:38:10
最后一次提交2017-05-18 02:38:10
发布数0
用户参与
星数362
关注者数6
派生数26
提交数89
已启用问题?
问题数23
打开的问题数8
拉请求数19
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?