{"action":"opened","number":33,"pull_request":{"url":"https://api.github.com/repos/wix/detox/pulls/33","id":88148405,"html_url":"https://github.com/wix/detox/pull/33","diff_url":"https://github.com/wix/detox/pull/33.diff","patch_url":"https://github.com/wix/detox/pull/33.patch","issue_url":"https://api.github.com/repos/wix/detox/issues/33","number":33,"state":"open","locked":false,"title":"output UI Hierarchy on test failure","user":{"login":"doronpr","id":3373954,"avatar_url":"https://avatars.githubusercontent.com/u/3373954?v=3","gravatar_id":"","url":"https://api.github.com/users/doronpr","html_url":"https://github.com/doronpr","followers_url":"https://api.github.com/users/doronpr/followers","following_url":"https://api.github.com/users/doronpr/following{/other_user}","gists_url":"https://api.github.com/users/doronpr/gists{/gist_id}","starred_url":"https://api.github.com/users/doronpr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doronpr/subscriptions","organizations_url":"https://api.github.com/users/doronpr/orgs","repos_url":"https://api.github.com/users/doronpr/repos","events_url":"https://api.github.com/users/doronpr/events{/privacy}","received_events_url":"https://api.github.com/users/doronpr/received_events","type":"User","site_admin":false},"body":"This frequently provides super useful information that can tell why the test failed.\r\n\r\nHere's the output of a (manual) test failure:\r\n\r\n```\r\nDETOX app: 2016-10-05 16:13:00.193 example[28117:558468] UI Hierarchy on test failure: <UIWindow:0x7fe843150bd0; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>\r\n  |--<RCTRootView:0x7fe840c02010; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>\r\n  |  |--<RCTRootContentView:0x7fe843165200; AX=N; AX.label='    World!!! '; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>\r\n  |  |  |--<RCTView:0x7fe840c96410; AX=N; AX.label='   World!!! '; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>\r\n  |  |  |  |--<RCTView:0x7fe840cb99d0; AX=N; AX.label='  World!!!'; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>\r\n  |  |  |  |  |--<RCTView:0x7fe840cb6fe0; AX=N; AX.label=' World!!!'; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>\r\n  |  |  |  |  |  |--<RCTText:0x7fe840de7c50; AX=Y; AX.label='World!!!'; AX.frame={{144.5, 328.5}, {86.5, 30}}; AX.activationPoint={187.75, 343.5}; AX.traits='UIAccessibilityTraitStaticText'; AX.focused='N'; frame={{144.5, 328.5}, {86.5, 30}}; alpha=1>\r\n  |  |  |  |  |  |  |--<RCTView:0x7fe840dd7680; AX=N; AX.frame={{144.5, 328.5}, {0, 0}}; AX.activationPoint={144.5, 328.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {0, 0}}; opaque; alpha=1>\r\n  |  |  |  |  |  |  |--<RCTView:0x7fe8434b6640; AX=N; AX.frame={{144.5, 328.5}, {0, 0}}; AX.activationPoint={144.5, 328.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {0, 0}}; opaque; alpha=1>\r\n  |  |  |  |--<RCTView:0x7fe84350ff80; AX=N; AX.frame={{0, 667}, {0, 0}}; AX.activationPoint={0, 667}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 667}, {0, 0}}; opaque; alpha=1>\r\n```\r\nSo for example, you can see that an element with AX label='World!!!' exists.","created_at":"2016-10-05T20:14:48Z","updated_at":"2016-10-05T20:14:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7baf706a438fd8a6b1f41e09156b2a8b166fcd24","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wix/detox/pulls/33/commits","review_comments_url":"https://api.github.com/repos/wix/detox/pulls/33/comments","review_comment_url":"https://api.github.com/repos/wix/detox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wix/detox/issues/33/comments","statuses_url":"https://api.github.com/repos/wix/detox/statuses/503dfd6cd6b56c2a78d32b59111581a072e95802","head":{"label":"wix:view-hierarchy","ref":"view-hierarchy","sha":"503dfd6cd6b56c2a78d32b59111581a072e95802","user":{"login":"wix","id":686511,"avatar_url":"https://avatars.githubusercontent.com/u/686511?v=3","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"repo":{"id":61204547,"name":"detox","full_name":"wix/detox","owner":{"login":"wix","id":686511,"avatar_url":"https://avatars.githubusercontent.com/u/686511?v=3","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wix/detox","description":"Graybox E2E tests and automation library for mobile","fork":false,"url":"https://api.github.com/repos/wix/detox","forks_url":"https://api.github.com/repos/wix/detox/forks","keys_url":"https://api.github.com/repos/wix/detox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wix/detox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wix/detox/teams","hooks_url":"https://api.github.com/repos/wix/detox/hooks","issue_events_url":"https://api.github.com/repos/wix/detox/issues/events{/number}","events_url":"https://api.github.com/repos/wix/detox/events","assignees_url":"https://api.github.com/repos/wix/detox/assignees{/user}","branches_url":"https://api.github.com/repos/wix/detox/branches{/branch}","tags_url":"https://api.github.com/repos/wix/detox/tags","blobs_url":"https://api.github.com/repos/wix/detox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wix/detox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wix/detox/git/refs{/sha}","trees_url":"https://api.github.com/repos/wix/detox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wix/detox/statuses/{sha}","languages_url":"https://api.github.com/repos/wix/detox/languages","stargazers_url":"https://api.github.com/repos/wix/detox/stargazers","contributors_url":"https://api.github.com/repos/wix/detox/contributors","subscribers_url":"https://api.github.com/repos/wix/detox/subscribers","subscription_url":"https://api.github.com/repos/wix/detox/subscription","commits_url":"https://api.github.com/repos/wix/detox/commits{/sha}","git_commits_url":"https://api.github.com/repos/wix/detox/git/commits{/sha}","comments_url":"https://api.github.com/repos/wix/detox/comments{/number}","issue_comment_url":"https://api.github.com/repos/wix/detox/issues/comments{/number}","contents_url":"https://api.github.com/repos/wix/detox/contents/{+path}","compare_url":"https://api.github.com/repos/wix/detox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wix/detox/merges","archive_url":"https://api.github.com/repos/wix/detox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wix/detox/downloads","issues_url":"https://api.github.com/repos/wix/detox/issues{/number}","pulls_url":"https://api.github.com/repos/wix/detox/pulls{/number}","milestones_url":"https://api.github.com/repos/wix/detox/milestones{/number}","notifications_url":"https://api.github.com/repos/wix/detox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wix/detox/labels{/name}","releases_url":"https://api.github.com/repos/wix/detox/releases{/id}","deployments_url":"https://api.github.com/repos/wix/detox/deployments","created_at":"2016-06-15T11:58:01Z","updated_at":"2016-10-05T13:39:01Z","pushed_at":"2016-10-05T20:14:48Z","git_url":"git://github.com/wix/detox.git","ssh_url":"git@github.com:wix/detox.git","clone_url":"https://github.com/wix/detox.git","svn_url":"https://github.com/wix/detox","homepage":"","size":4698,"stargazers_count":38,"watchers_count":38,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":17,"forks":3,"open_issues":17,"watchers":38,"default_branch":"master"}},"base":{"label":"wix:master","ref":"master","sha":"d90af3666231ff5a6c619d3facaaf3aacf1bf8dd","user":{"login":"wix","id":686511,"avatar_url":"https://avatars.githubusercontent.com/u/686511?v=3","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"repo":{"id":61204547,"name":"detox","full_name":"wix/detox","owner":{"login":"wix","id":686511,"avatar_url":"https://avatars.githubusercontent.com/u/686511?v=3","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wix/detox","description":"Graybox E2E tests and automation library for mobile","fork":false,"url":"https://api.github.com/repos/wix/detox","forks_url":"https://api.github.com/repos/wix/detox/forks","keys_url":"https://api.github.com/repos/wix/detox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wix/detox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wix/detox/teams","hooks_url":"https://api.github.com/repos/wix/detox/hooks","issue_events_url":"https://api.github.com/repos/wix/detox/issues/events{/number}","events_url":"https://api.github.com/repos/wix/detox/events","assignees_url":"https://api.github.com/repos/wix/detox/assignees{/user}","branches_url":"https://api.github.com/repos/wix/detox/branches{/branch}","tags_url":"https://api.github.com/repos/wix/detox/tags","blobs_url":"https://api.github.com/repos/wix/detox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wix/detox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wix/detox/git/refs{/sha}","trees_url":"https://api.github.com/repos/wix/detox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wix/detox/statuses/{sha}","languages_url":"https://api.github.com/repos/wix/detox/languages","stargazers_url":"https://api.github.com/repos/wix/detox/stargazers","contributors_url":"https://api.github.com/repos/wix/detox/contributors","subscribers_url":"https://api.github.com/repos/wix/detox/subscribers","subscription_url":"https://api.github.com/repos/wix/detox/subscription","commits_url":"https://api.github.com/repos/wix/detox/commits{/sha}","git_commits_url":"https://api.github.com/repos/wix/detox/git/commits{/sha}","comments_url":"https://api.github.com/repos/wix/detox/comments{/number}","issue_comment_url":"https://api.github.com/repos/wix/detox/issues/comments{/number}","contents_url":"https://api.github.com/repos/wix/detox/contents/{+path}","compare_url":"https://api.github.com/repos/wix/detox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wix/detox/merges","archive_url":"https://api.github.com/repos/wix/detox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wix/detox/downloads","issues_url":"https://api.github.com/repos/wix/detox/issues{/number}","pulls_url":"https://api.github.com/repos/wix/detox/pulls{/number}","milestones_url":"https://api.github.com/repos/wix/detox/milestones{/number}","notifications_url":"https://api.github.com/repos/wix/detox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wix/detox/labels{/name}","releases_url":"https://api.github.com/repos/wix/detox/releases{/id}","deployments_url":"https://api.github.com/repos/wix/detox/deployments","created_at":"2016-06-15T11:58:01Z","updated_at":"2016-10-05T13:39:01Z","pushed_at":"2016-10-05T20:14:48Z","git_url":"git://github.com/wix/detox.git","ssh_url":"git@github.com:wix/detox.git","clone_url":"https://github.com/wix/detox.git","svn_url":"https://github.com/wix/detox","homepage":"","size":4698,"stargazers_count":38,"watchers_count":38,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":17,"forks":3,"open_issues":17,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wix/detox/pulls/33"},"html":{"href":"https://github.com/wix/detox/pull/33"},"issue":{"href":"https://api.github.com/repos/wix/detox/issues/33"},"comments":{"href":"https://api.github.com/repos/wix/detox/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/wix/detox/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/wix/detox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wix/detox/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/wix/detox/statuses/503dfd6cd6b56c2a78d32b59111581a072e95802"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"doronpr"}}