fastlane-old / snapshot

Automate taking localized screenshots of your iOS app on every device
https://fastlane.tools
1.95k stars 141 forks source link

No such file or directory - screenshots/screenshots.html #360

Closed ilteris closed 8 years ago

ilteris commented 8 years ago

Hello,

Great set of tools! Thanks so much for building this for the community. I am using snapshot. I managed to make it work however I haven't managed it to generate screenshots. My test class and results are below.

https://gist.github.com/ilteris/e92a48e154280f23a64b

    [14:05:49]: > ▸ Test Succeeded
    [14:05:49]: > All tests
    [14:05:49]: > Test Suite DevUITests2.xctest started
    [14:05:49]: > DevUITests2
    [14:05:49]: > ✓ testExample (4.182 seconds)
    [14:05:49]: >    Executed 1 test, with 0 failures (0 unexpected) in 4.182 (4.184) seconds
    [14:05:49]: >
    [14:05:49]: Collecting screenshots...
    [14:05:49]: Found 0 screenshots...

    +---------------+-------+-------+-------+
    |           snapshot results            |
    +---------------+-------+-------+-------+
    | Device        | en-US | de-DE | it-IT |
    +---------------+-------+-------+-------+
    | iPhone 4s     |  💚    |  💚    |  💚    |
    | iPhone 5      |  💚    |  💚    |  💚    |
    | iPhone 6      |  💚    |  💚    |  💚    |
    | iPhone 6 Plus |  💚    |  💚    |  💚    |
    | iPad Retina   |  💚    |  💚    |  💚    |
    +---------------+-------+-------+-------+

    [14:05:49]: Generating HTML Report
    /Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/lib/snapshot/reports_generator.rb:34:in `write': No such file or directory - screenshots/screenshots.html (Errno::ENOENT)
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/lib/snapshot/reports_generator.rb:34:in `generate'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/lib/snapshot/runner.rb:52:in `work'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/bin/snapshot:37:in `block (2 levels) in run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/bin/snapshot:78:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/bin/snapshot:84:in `<top (required)>'
    from /usr/local/bin/snapshot:23:in `load'
    from /usr/local/bin/snapshot:23:in `<main>'

Am I missing something here? Thanks so much!

KrauseFx commented 8 years ago

This this start happening recently?

ilteris commented 8 years ago

@KrauseFx I cannot answer for before since I didn't try the library before but it happened yesterday.

fastlane-bot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/1673. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: