target :MyApp do pod 'Masonry' end 11.排除taget target 'MyApp Tests', :exclusive => true do pod 'FBSnapshotTestCase
这类测试首先渲染一个组件,然后使用TestModule.verifySnapshot()比对屏幕截图与参考效果图,其原理是利用了FBSnapshotTestCase这个库。
我们建议使用FBSnapShotTestCase,如果您使用的是Specta / Expecta,那么我们会包含一个Pod来改进语法。
./` Installing BookReader 0.1.0 Using FBSnapshotTestCase (2.1.4) Sending stats Pod installation complete
Analyzing dependencies Downloading dependencies Installing AaronSwift (0.1.0) Installing FBSnapshotTestCase