{"action":"created","issue":{"url":"https://api.github.com/repos/pana-cc/mocha-typescript/issues/46","repository_url":"https://api.github.com/repos/pana-cc/mocha-typescript","labels_url":"https://api.github.com/repos/pana-cc/mocha-typescript/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/pana-cc/mocha-typescript/issues/46/comments","events_url":"https://api.github.com/repos/pana-cc/mocha-typescript/issues/46/events","html_url":"https://github.com/pana-cc/mocha-typescript/issues/46","id":262424615,"number":46,"title":"Retry tests","user":{"login":"mad-gooze","id":1188779,"avatar_url":"https://avatars3.githubusercontent.com/u/1188779?v=4","gravatar_id":"","url":"https://api.github.com/users/mad-gooze","html_url":"https://github.com/mad-gooze","followers_url":"https://api.github.com/users/mad-gooze/followers","following_url":"https://api.github.com/users/mad-gooze/following{/other_user}","gists_url":"https://api.github.com/users/mad-gooze/gists{/gist_id}","starred_url":"https://api.github.com/users/mad-gooze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mad-gooze/subscriptions","organizations_url":"https://api.github.com/users/mad-gooze/orgs","repos_url":"https://api.github.com/users/mad-gooze/repos","events_url":"https://api.github.com/users/mad-gooze/events{/privacy}","received_events_url":"https://api.github.com/users/mad-gooze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-03T13:20:34Z","updated_at":"2017-10-03T18:52:09Z","closed_at":null,"author_association":"NONE","body":"Hello!\r\n\r\nIs it possilbe to use [mocha's retry tests feature](http://mochajs.org/#retry-tests) from mocha-typescript?"},"comment":{"url":"https://api.github.com/repos/pana-cc/mocha-typescript/issues/comments/333942534","html_url":"https://github.com/pana-cc/mocha-typescript/issues/46#issuecomment-333942534","issue_url":"https://api.github.com/repos/pana-cc/mocha-typescript/issues/46","id":333942534,"user":{"login":"mad-gooze","id":1188779,"avatar_url":"https://avatars3.githubusercontent.com/u/1188779?v=4","gravatar_id":"","url":"https://api.github.com/users/mad-gooze","html_url":"https://github.com/mad-gooze","followers_url":"https://api.github.com/users/mad-gooze/followers","following_url":"https://api.github.com/users/mad-gooze/following{/other_user}","gists_url":"https://api.github.com/users/mad-gooze/gists{/gist_id}","starred_url":"https://api.github.com/users/mad-gooze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mad-gooze/subscriptions","organizations_url":"https://api.github.com/users/mad-gooze/orgs","repos_url":"https://api.github.com/users/mad-gooze/repos","events_url":"https://api.github.com/users/mad-gooze/events{/privacy}","received_events_url":"https://api.github.com/users/mad-gooze/received_events","type":"User","site_admin":false},"created_at":"2017-10-03T18:52:09Z","updated_at":"2017-10-03T18:52:09Z","author_association":"NONE","body":"I have managed to call retries() from mocha context, but it seems that it is not working properly.\r\nPlease see this examples:\r\nhttps://github.com/mad-gooze/mocha-typescript/blob/retries/retries-in-test.ts\r\nhttps://github.com/mad-gooze/mocha-typescript/blob/retries/retries.ts\r\n\r\nIf I call `this.mocha.retries` in `@test` (1st example), everything is ok\r\n```\r\nHello world: calls 0\r\nHello world: calls 1\r\nHello world: calls 2\r\nHello world: calls 3\r\n```\r\n\r\nBut if I do it in `before()` function (2nd example), it is ignored.\r\n```\r\nHello world: calls 0\r\n```\r\nThe same happens if I do it in `static before()`. \r\n\r\nWhile first variant is working, I would like to use the second one to enable retries in all of my test suites derived from a single BaseTest.\r\n\r\nIs that a bug in mocha-typescript or am I doing something wrong?\r\n\r\nThnx"}}
{"actor":{"display_login":"mad-gooze"}}