{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/1366","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/1366/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/1366/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/1366/events","html_url":"https://github.com/Codeception/Codeception/issues/1366","id":41599841,"number":1366,"title":"Test Failure should contain additional information","user":{"login":"DavertMik","id":220264,"avatar_url":"https://avatars.githubusercontent.com/u/220264?v=3","gravatar_id":"","url":"https://api.github.com/users/DavertMik","html_url":"https://github.com/DavertMik","followers_url":"https://api.github.com/users/DavertMik/followers","following_url":"https://api.github.com/users/DavertMik/following{/other_user}","gists_url":"https://api.github.com/users/DavertMik/gists{/gist_id}","starred_url":"https://api.github.com/users/DavertMik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavertMik/subscriptions","organizations_url":"https://api.github.com/users/DavertMik/orgs","repos_url":"https://api.github.com/users/DavertMik/repos","events_url":"https://api.github.com/users/DavertMik/events{/privacy}","received_events_url":"https://api.github.com/users/DavertMik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Codeception/Codeception/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Codeception/Codeception/milestones/6","labels_url":"https://api.github.com/repos/Codeception/Codeception/milestones/6/labels","id":713276,"number":6,"title":"2.1","description":null,"creator":{"login":"DavertMik","id":220264,"avatar_url":"https://avatars.githubusercontent.com/u/220264?v=3","gravatar_id":"","url":"https://api.github.com/users/DavertMik","html_url":"https://github.com/DavertMik","followers_url":"https://api.github.com/users/DavertMik/followers","following_url":"https://api.github.com/users/DavertMik/following{/other_user}","gists_url":"https://api.github.com/users/DavertMik/gists{/gist_id}","starred_url":"https://api.github.com/users/DavertMik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavertMik/subscriptions","organizations_url":"https://api.github.com/users/DavertMik/orgs","repos_url":"https://api.github.com/users/DavertMik/repos","events_url":"https://api.github.com/users/DavertMik/events{/privacy}","received_events_url":"https://api.github.com/users/DavertMik/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":1,"state":"open","created_at":"2014-07-08T02:22:45Z","updated_at":"2014-12-16T22:16:39Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2014-09-01T00:21:11Z","updated_at":"2015-01-08T13:41:10Z","closed_at":null,"body":"Currently test failure is indicated by `PHPUnit_Framework_AssertionFailedError` exception thrown. \r\nIt contains description of failure from the PHPUnit's point of view. Codeception may provide additional valuable information into it, like\r\n\r\n* screenshot\r\n* steps\r\n* html page \r\n\r\nIn order to achieve this, Codeception should wrap `PHPUnit_Framework_AssertionFailedError` in its own failure class, and rethrow it on failure. `_failed` hooks on modules, helpers, should be able to attach additional info into failure exception.\r\n\r\nThis will be useful for extensions, for error display, for report tools, etc."},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/69179958","html_url":"https://github.com/Codeception/Codeception/issues/1366#issuecomment-69179958","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/1366","id":69179958,"user":{"login":"atorian","id":958632,"avatar_url":"https://avatars.githubusercontent.com/u/958632?v=3","gravatar_id":"","url":"https://api.github.com/users/atorian","html_url":"https://github.com/atorian","followers_url":"https://api.github.com/users/atorian/followers","following_url":"https://api.github.com/users/atorian/following{/other_user}","gists_url":"https://api.github.com/users/atorian/gists{/gist_id}","starred_url":"https://api.github.com/users/atorian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atorian/subscriptions","organizations_url":"https://api.github.com/users/atorian/orgs","repos_url":"https://api.github.com/users/atorian/repos","events_url":"https://api.github.com/users/atorian/events{/privacy}","received_events_url":"https://api.github.com/users/atorian/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T13:41:10Z","updated_at":"2015-01-08T13:41:10Z","body":"other side of this bug is:\r\nexceptions ContentNotFound and ElementNotFound does not extend ConditionalAssertionFailed\r\nthats why \"catch\" can't handle it."}}