fastlane: Snapshot runs UITests but does not take screenshots

Original issue by @oskarn97 - Imported from fastlane/snapshot#234

Hello,

I tried to integrate UITests into an existing project. Snapshot runs the tests successfully but is unable to fetch the screenshots.

The log:

▸ Linking UITests Running Tests: ▸ Touching UITests.xctest ▸ Test Succeeded All tests Test Suite UITests.xctest started UITests ✓ testExample (36.821 seconds)

 Executed 1 test, with 0 failures (0 unexpected) in 36.821 (36.822) seconds

[17:07:57]: Collecting screenshots… [17:07:57]: Found 0 screenshots… [17:07:57]: Looks like the number of screenshots (0) doesn’t match the number of names (4) [17:07:57]: no implicit conversion of nil into String

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 27 (1 by maintainers)

Most upvoted comments

@ohwutup, Thanks for the clarification. The problem was my test. I had an infinite animation running in the same view that I tried to tap a button, and apparently this doesn’t work! It waits for the animation to complete (which it doesn’t) before it taps the button, so the test fails with a timeout.