this is my test :
class ZabiTests: FBSnapshotTestCase {
var vc:UIViewController?
override func setUpWithError() throws {
super.setUp()
vc = ViewController()
recordMode = true
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func testExample() throws {
FBSnapshotVerifyView((vc?.view)!)
}
func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}
first time i run with recordMode = true and then i run without this line, and still i get Snapshot comparison failed
(vc is okey, red background and not nil )
After playing around with it I created an alternative way of auto defining those folders by creating my own base class: