{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/13","repository_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android","labels_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/13/comments","events_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/13/events","html_url":"https://github.com/facebook/screenshot-tests-for-android/issues/13","id":114796513,"number":13,"title":"Document `testApkTarget`","user":{"login":"jonfinerty","id":1330072,"avatar_url":"https://avatars.githubusercontent.com/u/1330072?v=3","gravatar_id":"","url":"https://api.github.com/users/jonfinerty","html_url":"https://github.com/jonfinerty","followers_url":"https://api.github.com/users/jonfinerty/followers","following_url":"https://api.github.com/users/jonfinerty/following{/other_user}","gists_url":"https://api.github.com/users/jonfinerty/gists{/gist_id}","starred_url":"https://api.github.com/users/jonfinerty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonfinerty/subscriptions","organizations_url":"https://api.github.com/users/jonfinerty/orgs","repos_url":"https://api.github.com/users/jonfinerty/repos","events_url":"https://api.github.com/users/jonfinerty/events{/privacy}","received_events_url":"https://api.github.com/users/jonfinerty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-11-03T11:32:35Z","updated_at":"2016-09-28T16:42:32Z","closed_at":null,"body":"I added the plugin to my build, with the instructions found in http://facebook.github.io/screenshot-tests-for-android/#getting-started and then tried running `gradle tasks`. I got the error:\r\n\r\n```\r\nExecution failed for task ':tasks'.\r\n> Could not determine the dependencies of task ':app:pullScreenshots'.\r\n```\r\n\r\nThrough looking through the stacktrace and googling I found https://github.com/facebook/screenshot-tests-for-android/issues/1 and the fact I need to do the following to inform screenshots about the name of the test task:\r\n\r\n```\r\nscreenshots {\r\n    testApkTarget = 'connectedAndroidTestDebug'\r\n}\r\n```\r\n\r\nWhich will be different for a lot of users. It would be good if either the docs mentioned this or there was a more helpful error message when it's not configured properly."},"comment":{"url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/comments/250224583","html_url":"https://github.com/facebook/screenshot-tests-for-android/issues/13#issuecomment-250224583","issue_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/13","id":250224583,"user":{"login":"tdrhq","id":82582,"avatar_url":"https://avatars.githubusercontent.com/u/82582?v=3","gravatar_id":"","url":"https://api.github.com/users/tdrhq","html_url":"https://github.com/tdrhq","followers_url":"https://api.github.com/users/tdrhq/followers","following_url":"https://api.github.com/users/tdrhq/following{/other_user}","gists_url":"https://api.github.com/users/tdrhq/gists{/gist_id}","starred_url":"https://api.github.com/users/tdrhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdrhq/subscriptions","organizations_url":"https://api.github.com/users/tdrhq/orgs","repos_url":"https://api.github.com/users/tdrhq/repos","events_url":"https://api.github.com/users/tdrhq/events{/privacy}","received_events_url":"https://api.github.com/users/tdrhq/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T16:42:32Z","updated_at":"2016-09-28T16:42:32Z","body":"hmm, I'm able to repro if use productFlavors {} to the example app. Looking into it, I can probably make the output better, but the workaround is to use \r\n\r\n``` \r\n  screenshots {\r\n    testApkTarget = 'connected<Flavor>DebugAndroidTest',\r\n  }\r\n```"}}
{"actor":{"display_login":"tdrhq"}}