{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/7575","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/7575/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/7575/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/7575/events","html_url":"https://github.com/facebook/react-native/pull/7575","id":154936222,"number":7575,"title":"Fix tests buck build when running locally","user":{"login":"janicduplessis","id":2677334,"avatar_url":"https://avatars.githubusercontent.com/u/2677334?v=3","gravatar_id":"","url":"https://api.github.com/users/janicduplessis","html_url":"https://github.com/janicduplessis","followers_url":"https://api.github.com/users/janicduplessis/followers","following_url":"https://api.github.com/users/janicduplessis/following{/other_user}","gists_url":"https://api.github.com/users/janicduplessis/gists{/gist_id}","starred_url":"https://api.github.com/users/janicduplessis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janicduplessis/subscriptions","organizations_url":"https://api.github.com/users/janicduplessis/orgs","repos_url":"https://api.github.com/users/janicduplessis/repos","events_url":"https://api.github.com/users/janicduplessis/events{/privacy}","received_events_url":"https://api.github.com/users/janicduplessis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/CLA%20Signed","name":"CLA Signed","color":"e7e7e7"},{"url":"https://api.github.com/repos/facebook/react-native/labels/GH%20Review:%20accepted","name":"GH Review: accepted","color":"009800"},{"url":"https://api.github.com/repos/facebook/react-native/labels/Import%20Started","name":"Import Started","color":"eeeeee"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-15T23:01:57Z","updated_at":"2016-05-16T18:50:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/7575","html_url":"https://github.com/facebook/react-native/pull/7575","diff_url":"https://github.com/facebook/react-native/pull/7575.diff","patch_url":"https://github.com/facebook/react-native/pull/7575.patch"},"body":"Got this error when trying to run instrumentation tests locally with `./scripts/run-android-local-integration-test.sh`\r\n\r\n```\r\nC:\\Users\\janic\\Developer\\react-native\\ReactAndroid\\src\\androidTest\\java\\com\\facebook\\react\\tests\\DatePickerDialogTestCase.java:110: error: cannot access com.facebook.react.modules.core.DefaultHardwareBackBtnHandler\r\n    return (DialogFragment) getActivity().getSupportFragmentManager()\r\n                                         ^\r\n  class file for com.facebook.react.modules.core.DefaultHardwareBackBtnHandler not found\r\nC:\\Users\\janic\\Developer\\react-native\\ReactAndroid\\src\\androidTest\\java\\com\\facebook\\react\\tests\\ViewRenderingTestCase.java:82: error: cannot access com.facebook.react.touch.ReactInterceptingViewGroup\r\n    assertEquals(\"Incorrect (or not applied) opacity\", expectedOpacity, view.getAlpha());\r\n                                                                            ^\r\n  class file for com.facebook.react.touch.ReactInterceptingViewGroup not found\r\nC:\\Users\\janic\\Developer\\react-native\\ReactAndroid\\src\\androidTest\\java\\com\\facebook\\react\\tests\\ViewRenderingTestCase.java:86: error: cannot access com.facebook.react.touch.ReactHitSlopView\r\n        view.getBackgroundColor());\r\n            ^\r\n  class file for com.facebook.react.touch.ReactHitSlopView not found\r\nC:\\Users\\janic\\Developer\\react-native\\ReactAndroid\\src\\androidTest\\java\\com\\facebook\\react\\tests\\ReactHorizontalScrollViewTestCase.java:-1: note: Some input files use or override a deprecated API.\r\n\r\nC:\\Users\\janic\\Developer\\react-native\\ReactAndroid\\src\\androidTest\\java\\com\\facebook\\react\\tests\\ReactHorizontalScrollViewTestCase.java:-1: note: Recompile with -Xlint:deprecation for details.\r\n\r\nErrors: 3. Warnings: 0.\r\n\r\nBUILD FAILED: //ReactAndroid/src/androidTest/java/com/facebook/react/tests:tests failed with exit code 1:\r\njavac\r\n[-] BUILDING...FINISHED 52.2s [100%]\r\nNot using buckd because NO_BUCKD is set.\r\n```\r\n\r\nNot sure exactly why it works on CI but adding those 2 lines to the tests BUCK file fixes the issue. Also added the generated test bundle to gitignore.\r\n\r\n**Test plan**\r\nRan integration tests locally with `./scripts/run-android-local-integration-test.sh`"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/219511953","html_url":"https://github.com/facebook/react-native/pull/7575#issuecomment-219511953","issue_url":"https://api.github.com/repos/facebook/react-native/issues/7575","id":219511953,"user":{"login":"facebook-github-bot-6","id":8398675,"avatar_url":"https://avatars.githubusercontent.com/u/8398675?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot-6","html_url":"https://github.com/facebook-github-bot-6","followers_url":"https://api.github.com/users/facebook-github-bot-6/followers","following_url":"https://api.github.com/users/facebook-github-bot-6/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot-6/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot-6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot-6/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot-6/orgs","repos_url":"https://api.github.com/users/facebook-github-bot-6/repos","events_url":"https://api.github.com/users/facebook-github-bot-6/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot-6/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T18:50:38Z","updated_at":"2016-05-16T18:50:38Z","body":"Thanks for importing. If you are an FB employee go to [Phabricator](https://our.intern.facebook.com/intern/opensource/github/pull_request/459109967631739/int_phab) to review."}}