{"action":"created","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/591","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/591/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/591/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/591/events","html_url":"https://github.com/mochajs/mocha/issues/591","id":7174595,"number":591,"title":"Allow to skip() test  inside the function","user":{"login":"whitecolor","id":736697,"avatar_url":"https://avatars.githubusercontent.com/u/736697?v=3","gravatar_id":"","url":"https://api.github.com/users/whitecolor","html_url":"https://github.com/whitecolor","followers_url":"https://api.github.com/users/whitecolor/followers","following_url":"https://api.github.com/users/whitecolor/following{/other_user}","gists_url":"https://api.github.com/users/whitecolor/gists{/gist_id}","starred_url":"https://api.github.com/users/whitecolor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitecolor/subscriptions","organizations_url":"https://api.github.com/users/whitecolor/orgs","repos_url":"https://api.github.com/users/whitecolor/repos","events_url":"https://api.github.com/users/whitecolor/events{/privacy}","received_events_url":"https://api.github.com/users/whitecolor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":43,"created_at":"2012-09-27T06:49:12Z","updated_at":"2015-12-16T14:43:37Z","closed_at":"2012-09-27T22:00:57Z","body":"In my tests some times test need to run only if certain conditions are met, for example previous test passed (where not skipped like load and save consequent tests). \n\nIt would be great if inside test function I could do something like that:\n\n<code>\n\nif (!this.fit) this.skip() // and mocha would skip the test.\n\n</code>"},"comment":{"url":"https://api.github.com/repos/mochajs/mocha/issues/comments/165129688","html_url":"https://github.com/mochajs/mocha/issues/591#issuecomment-165129688","issue_url":"https://api.github.com/repos/mochajs/mocha/issues/591","id":165129688,"user":{"login":"ifreecarve","id":583459,"avatar_url":"https://avatars.githubusercontent.com/u/583459?v=3","gravatar_id":"","url":"https://api.github.com/users/ifreecarve","html_url":"https://github.com/ifreecarve","followers_url":"https://api.github.com/users/ifreecarve/followers","following_url":"https://api.github.com/users/ifreecarve/following{/other_user}","gists_url":"https://api.github.com/users/ifreecarve/gists{/gist_id}","starred_url":"https://api.github.com/users/ifreecarve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifreecarve/subscriptions","organizations_url":"https://api.github.com/users/ifreecarve/orgs","repos_url":"https://api.github.com/users/ifreecarve/repos","events_url":"https://api.github.com/users/ifreecarve/events{/privacy}","received_events_url":"https://api.github.com/users/ifreecarve/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T14:43:37Z","updated_at":"2015-12-16T14:43:37Z","body":"Very much so -- thanks!"}}