Snapshots

An Xcode Plugin to show the state of FBSnapshot Tests.

  • 所有者: orta/Snapshots
  • 平台:
  • 許可證: BSD 2-Clause "Simplified" License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

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 14:19:25
推送於2017-05-17 18:38:10
最后一次提交2017-05-17 19:38:10
發布數0
用户参与
星數362
關注者數7
派生數26
提交數89
已啟用問題?
問題數23
打開的問題數8
拉請求數19
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?