skyweb07 / Snap.swift

Snapshot testing in a snap 🎨

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debugging failure on Travis CI

rnystrom opened this issue · comments

I have a consistent failure for GitHawkApp/StyledTextKit#44 only on Travis CI that I'm struggling to debug. Everything is green locally, but just a single test repeatedly fails on Travis.

If I run the same xcodebuild command locally, everything passes. Same goes for testing within Xcode.

Any tips?

sorry, I've been a little off, checking at the issue it seems to be related with the device you're testing, are you testing with the same device on ci and on local? remember that snap it's not device agnostic yet

@skyweb07 It's only for a single test which repeatedly fails.

Test Case '-[Tests.SnapTests test_complexBuilder]' started.
/Users/travis/build/GitHawkApp/StyledTextKit/Pods/Snap.swift/Snap/Core/Application/Actions/CompareImages.swift:52: error: -[Tests.SnapTests test_complexBuilder] : failed - ≠ Images are not equal
Test Case '-[Tests.SnapTests test_complexBuilder]' failed (0.098 seconds).

Really struggling on how to even debug this w/ Travis.

Going to try updating Travis to Xcode 10 and regenerate assets...

Fixed!

Sent with GitHawk