{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/1","labels_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/1/comments","events_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/1/events","html_url":"https://github.com/facebook/screenshot-tests-for-android/issues/1","id":110084531,"number":1,"title":"Support for multiple build variants","user":{"login":"scompt","id":277576,"avatar_url":"https://avatars.githubusercontent.com/u/277576?v=3","gravatar_id":"","url":"https://api.github.com/users/scompt","html_url":"https://github.com/scompt","followers_url":"https://api.github.com/users/scompt/followers","following_url":"https://api.github.com/users/scompt/following{/other_user}","gists_url":"https://api.github.com/users/scompt/gists{/gist_id}","starred_url":"https://api.github.com/users/scompt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scompt/subscriptions","organizations_url":"https://api.github.com/users/scompt/orgs","repos_url":"https://api.github.com/users/scompt/repos","events_url":"https://api.github.com/users/scompt/events{/privacy}","received_events_url":"https://api.github.com/users/scompt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-06T19:41:43Z","updated_at":"2015-10-06T20:03:43Z","closed_at":null,"body":"Thanks for releasing this! I've been looking forward to taking a look at it.\r\n\r\nMy app has a bunch of build types and a couple build flavors yielding lots of different build variants. When I follow the docs to add your project and run a simple test, I get the following error:\r\n\r\n```\r\n$ ./gradlew screenshotTests\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nCould not determine the dependencies of task ':ExampleCompany:pullScreenshots'.\r\n> Task with path ':packageDebugAndroidTest' not found in project ':ExampleCompany'.\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\nBUILD FAILED\r\n\r\nTotal time: 12.355 sec\r\n```\r\n\r\nIt looks like the plugin is trying to find the `packageDebugAndroidTest` task, which doesn't exist in my app. Instead, I would like to use the `packagePlayInternalDebugAndroidTest` task.\r\n\r\nLooking around in the plugin, I found [this](https://github.com/facebook/screenshot-tests-for-android/blob/master/plugin/src/main/groovy/com/facebook/testing/screenshot/build/ScreenshotsPlugin.groovy#L5), which suggests that I can configure the plugin like so:\r\n\r\n```\r\nscreenshots {\r\n    testApkTarget = 'packagePlayInternalDebugAndroidTest'\r\n}\r\n```\r\n\r\nEven with this line, I get the same error. Any advice?"},"comment":{"url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/comments/145981733","html_url":"https://github.com/facebook/screenshot-tests-for-android/issues/1#issuecomment-145981733","issue_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/1","id":145981733,"user":{"login":"scompt","id":277576,"avatar_url":"https://avatars.githubusercontent.com/u/277576?v=3","gravatar_id":"","url":"https://api.github.com/users/scompt","html_url":"https://github.com/scompt","followers_url":"https://api.github.com/users/scompt/followers","following_url":"https://api.github.com/users/scompt/following{/other_user}","gists_url":"https://api.github.com/users/scompt/gists{/gist_id}","starred_url":"https://api.github.com/users/scompt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scompt/subscriptions","organizations_url":"https://api.github.com/users/scompt/orgs","repos_url":"https://api.github.com/users/scompt/repos","events_url":"https://api.github.com/users/scompt/events{/privacy}","received_events_url":"https://api.github.com/users/scompt/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T20:03:43Z","updated_at":"2015-10-06T20:03:43Z","body":"> what command do you typically use to run your tests?\r\n\r\n`connectedAndroidTest`"}}