{"action":"created","issue":{"url":"https://api.github.com/repos/curit/ember-cli-yadda/issues/33","repository_url":"https://api.github.com/repos/curit/ember-cli-yadda","labels_url":"https://api.github.com/repos/curit/ember-cli-yadda/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/curit/ember-cli-yadda/issues/33/comments","events_url":"https://api.github.com/repos/curit/ember-cli-yadda/issues/33/events","html_url":"https://github.com/curit/ember-cli-yadda/issues/33","id":189495870,"number":33,"title":"Better traceability for failing tests","user":{"login":"simonihmig","id":1325249,"avatar_url":"https://avatars.githubusercontent.com/u/1325249?v=3","gravatar_id":"","url":"https://api.github.com/users/simonihmig","html_url":"https://github.com/simonihmig","followers_url":"https://api.github.com/users/simonihmig/followers","following_url":"https://api.github.com/users/simonihmig/following{/other_user}","gists_url":"https://api.github.com/users/simonihmig/gists{/gist_id}","starred_url":"https://api.github.com/users/simonihmig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonihmig/subscriptions","organizations_url":"https://api.github.com/users/simonihmig/orgs","repos_url":"https://api.github.com/users/simonihmig/repos","events_url":"https://api.github.com/users/simonihmig/events{/privacy}","received_events_url":"https://api.github.com/users/simonihmig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-15T20:19:15Z","updated_at":"2016-11-16T10:00:12Z","closed_at":null,"body":"@albertjan as were in a flow right now... ;)\r\n\r\nThis is basically just an idea, and I am curious on what your opinion is about the following proposal. The problem I have been facing often times with ember-cli-yadda ist that when tests are failing you have no idea where the problem really comes from, because of all the asynchrony and the \"broken\" stack traces. Not even on which step the error occured.\r\n\r\nTo make this easier for us, we have been using our fork to actually include the addon, and changed the test setup (Mocha-based) a bit:\r\n* each step is defined as a separate test (`it()` in mocha)\r\n* a scenario wraps all steps in a `describe`\r\n* a feature wraps all scenario in another `describe`\r\n* when a step test is failing, all following steps tests are marked as pending (to prevent them from being run, as they are now defined as kind of independent tests)\r\n\r\nHere is an example mocha output of a failing test with that setup:\r\n\r\n![bildschirmfoto 2016-11-15 um 19 43 58](https://cloud.githubusercontent.com/assets/1325249/20322131/2cc62068-ab78-11e6-8cd2-7941385f9da8.png)\r\n\r\nYou can see the code for this here: https://github.com/simonihmig/ember-cli-yadda/tree/mocha-separate-steps\r\n\r\nAlthough this may seem strange at first look, this has served us quite well to easily identify where tests are failing. And it increased the test count considerably, which made us feel more comfortable! (just kidding :))\r\n\r\nI wonder if that setup would make sense to be merged back? As a default or maybe as an option? Could put a PR together, as it is already there for Mocha, Qunit though is still missing..."},"comment":{"url":"https://api.github.com/repos/curit/ember-cli-yadda/issues/comments/260903986","html_url":"https://github.com/curit/ember-cli-yadda/issues/33#issuecomment-260903986","issue_url":"https://api.github.com/repos/curit/ember-cli-yadda/issues/33","id":260903986,"user":{"login":"albertjan","id":301791,"avatar_url":"https://avatars.githubusercontent.com/u/301791?v=3","gravatar_id":"","url":"https://api.github.com/users/albertjan","html_url":"https://github.com/albertjan","followers_url":"https://api.github.com/users/albertjan/followers","following_url":"https://api.github.com/users/albertjan/following{/other_user}","gists_url":"https://api.github.com/users/albertjan/gists{/gist_id}","starred_url":"https://api.github.com/users/albertjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertjan/subscriptions","organizations_url":"https://api.github.com/users/albertjan/orgs","repos_url":"https://api.github.com/users/albertjan/repos","events_url":"https://api.github.com/users/albertjan/events{/privacy}","received_events_url":"https://api.github.com/users/albertjan/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T10:00:12Z","updated_at":"2016-11-16T10:00:12Z","body":"I looked through your code, your sharing the context between steps, is that on purpose?"}}
{"actor":{"display_login":"albertjan"}}