{"action":"reopened","issue":{"url":"https://api.github.com/repos/Quick/Quick/issues/358","labels_url":"https://api.github.com/repos/Quick/Quick/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/Quick/Quick/issues/358/comments","events_url":"https://api.github.com/repos/Quick/Quick/issues/358/events","html_url":"https://github.com/Quick/Quick/issues/358","id":98079891,"number":358,"title":"Let afterEach block or some other user hook know whether example passed","user":{"login":"pcantrell","id":378162,"avatar_url":"https://avatars.githubusercontent.com/u/378162?v=3","gravatar_id":"","url":"https://api.github.com/users/pcantrell","html_url":"https://github.com/pcantrell","followers_url":"https://api.github.com/users/pcantrell/followers","following_url":"https://api.github.com/users/pcantrell/following{/other_user}","gists_url":"https://api.github.com/users/pcantrell/gists{/gist_id}","starred_url":"https://api.github.com/users/pcantrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcantrell/subscriptions","organizations_url":"https://api.github.com/users/pcantrell/orgs","repos_url":"https://api.github.com/users/pcantrell/repos","events_url":"https://api.github.com/users/pcantrell/events{/privacy}","received_events_url":"https://api.github.com/users/pcantrell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Quick/Quick/labels/enhancement","name":"enhancement","color":"0052cc"},{"url":"https://api.github.com/repos/Quick/Quick/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-30T03:55:34Z","updated_at":"2015-10-06T23:48:54Z","closed_at":null,"body":"Use cases:\r\n\r\n* Capture log output and print only if test failed. (This is the one that brought me here.)\r\n* Roll up failures for notification / reporting.\r\n* Do cleanup that’s necessary only if spec didn’t reach its conclusion.\r\n\r\nImplementation approaches:\r\n\r\n* Add a new property to `ExampleMetadata`.\r\n* Add a new `afterEach` closure flavor that accepts a second argument.\r\n* Provide some sort of “test runner” user hook other than `afterEach` to wrap/replace `Example.run()`."}}