{"action":"created","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/1773","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/1773/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/1773/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/1773/events","html_url":"https://github.com/mochajs/mocha/issues/1773","id":92227485,"number":1773,"title":"Option to retry tests","user":{"login":"EvanHahn","id":777712,"avatar_url":"https://avatars.githubusercontent.com/u/777712?v=3","gravatar_id":"","url":"https://api.github.com/users/EvanHahn","html_url":"https://github.com/EvanHahn","followers_url":"https://api.github.com/users/EvanHahn/followers","following_url":"https://api.github.com/users/EvanHahn/following{/other_user}","gists_url":"https://api.github.com/users/EvanHahn/gists{/gist_id}","starred_url":"https://api.github.com/users/EvanHahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvanHahn/subscriptions","organizations_url":"https://api.github.com/users/EvanHahn/orgs","repos_url":"https://api.github.com/users/EvanHahn/repos","events_url":"https://api.github.com/users/EvanHahn/events{/privacy}","received_events_url":"https://api.github.com/users/EvanHahn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mochajs/mocha/labels/Feature","name":"Feature","color":"207de5"},{"url":"https://api.github.com/repos/mochajs/mocha/labels/PR%20PLEASE","name":"PR PLEASE","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":35,"created_at":"2015-06-30T23:55:02Z","updated_at":"2015-12-22T11:08:27Z","closed_at":null,"body":"When writing Selenium/browser tests, weird things just break unreliably. I suspect most people who write browser tests find this to be true.\r\n\r\nI would love to be able to retry failing tests a certain number of times.\r\n\r\nI would love to do something like this:\r\n\r\n```sh\r\nmocha --retries 3 \r\n```\r\n\r\n...or maybe this:\r\n\r\n```js\r\nit('works', function () {\r\n  this.retries(3);\r\n  // try stuff...\r\n});\r\n```\r\n\r\nI'd be willing to PR this if this sounds like a good idea."},"comment":{"url":"https://api.github.com/repos/mochajs/mocha/issues/comments/166583325","html_url":"https://github.com/mochajs/mocha/issues/1773#issuecomment-166583325","issue_url":"https://api.github.com/repos/mochajs/mocha/issues/1773","id":166583325,"user":{"login":"stalniy","id":1159966,"avatar_url":"https://avatars.githubusercontent.com/u/1159966?v=3","gravatar_id":"","url":"https://api.github.com/users/stalniy","html_url":"https://github.com/stalniy","followers_url":"https://api.github.com/users/stalniy/followers","following_url":"https://api.github.com/users/stalniy/following{/other_user}","gists_url":"https://api.github.com/users/stalniy/gists{/gist_id}","starred_url":"https://api.github.com/users/stalniy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stalniy/subscriptions","organizations_url":"https://api.github.com/users/stalniy/orgs","repos_url":"https://api.github.com/users/stalniy/repos","events_url":"https://api.github.com/users/stalniy/events{/privacy}","received_events_url":"https://api.github.com/users/stalniy/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T11:08:26Z","updated_at":"2015-12-22T11:08:26Z","body":"@boneskull That's a pity because it looks like it's more important to win the debate for you than to hear a feedback which doesn't corelate with your perception of the world.\r\n\r\nIn my opinion you are a chatterbox because you offended me 2 times without even have at least a bit of correct information about what you are writing (the new behavior of professionals?). \r\n\r\nYou won. Good luck"}}