{"action":"created","issue":{"url":"https://api.github.com/repos/cbeust/testng/issues/857","labels_url":"https://api.github.com/repos/cbeust/testng/issues/857/labels{/name}","comments_url":"https://api.github.com/repos/cbeust/testng/issues/857/comments","events_url":"https://api.github.com/repos/cbeust/testng/issues/857/events","html_url":"https://github.com/cbeust/testng/issues/857","id":115186462,"number":857,"title":"onTestFailure not being called when test is retried (6.9.6)","user":{"login":"jineshkenandy","id":9420719,"avatar_url":"https://avatars.githubusercontent.com/u/9420719?v=3","gravatar_id":"","url":"https://api.github.com/users/jineshkenandy","html_url":"https://github.com/jineshkenandy","followers_url":"https://api.github.com/users/jineshkenandy/followers","following_url":"https://api.github.com/users/jineshkenandy/following{/other_user}","gists_url":"https://api.github.com/users/jineshkenandy/gists{/gist_id}","starred_url":"https://api.github.com/users/jineshkenandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jineshkenandy/subscriptions","organizations_url":"https://api.github.com/users/jineshkenandy/orgs","repos_url":"https://api.github.com/users/jineshkenandy/repos","events_url":"https://api.github.com/users/jineshkenandy/events{/privacy}","received_events_url":"https://api.github.com/users/jineshkenandy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cbeust/testng/labels/3%20-%20Done","name":"3 - Done","color":"CCCCCC"},{"url":"https://api.github.com/repos/cbeust/testng/labels/retry-analyzer","name":"retry-analyzer","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-11-05T01:06:48Z","updated_at":"2015-11-07T01:05:23Z","closed_at":null,"body":"My Test :\r\n@Listeners({ ScreenshotListener.class })\r\npublic class TestRetryLogic {\r\n    @Test(retryAnalyzer = Retry.class)\r\n    public void testRetryLogic() {\r\n        fail(\"Failing\");\r\n    }\r\n}\r\n\r\nMy Retry Analyzer :\r\npublic class Retry implements IRetryAnalyzer {\r\n    private final int maxRetryCountPerTest = 1;\r\n    private int retryCountPerTest = 0;\r\n    \r\n    public boolean retry(ITestResult result) {\r\n        if(retryCountPerTest < maxRetryCountPerTest) {\r\n            retryCountPerTest++;\r\n            return true;\r\n        }\r\n        return false;\r\n    }\r\n}\r\n\r\nMy Listener : \r\npublic class ScreenshotListener extends TestListenerAdapter {\r\n\r\n    @Override\r\n    public void onTestFailure(ITestResult tr) {\r\n        System.out.println(\"Test FAILED\");\r\n    }\r\n\r\n    @Override\r\n    public void onTestSkipped(ITestResult tr) {\r\n        System.out.println(\"Test SKIPPED\");\r\n    }\r\n    \r\n    @Override\r\n    public void onTestStart(ITestResult result) {\r\n        System.out.println(\"Test STARTED\");\r\n    }\r\n\r\n}\r\n\r\n\r\nMy output:\r\nTest STARTED\r\nTest SKIPPED\r\nTest STARTED\r\nSKIPPED: testRetryLogic\r\njava.lang.AssertionError: Failing\r\n\r\nI would have expected :\r\n\r\nTest STARTED\r\nTest SKIPPED\r\nTest STARTED\r\nTest FAILED (Missing from above)\r\nSKIPPED: testRetryLogic\r\njava.lang.AssertionError: Failing\r\n\r\nIs this a bug? Or is this expected?\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/cbeust/testng/issues/comments/154592977","html_url":"https://github.com/cbeust/testng/issues/857#issuecomment-154592977","issue_url":"https://api.github.com/repos/cbeust/testng/issues/857","id":154592977,"user":{"login":"jineshkenandy","id":9420719,"avatar_url":"https://avatars.githubusercontent.com/u/9420719?v=3","gravatar_id":"","url":"https://api.github.com/users/jineshkenandy","html_url":"https://github.com/jineshkenandy","followers_url":"https://api.github.com/users/jineshkenandy/followers","following_url":"https://api.github.com/users/jineshkenandy/following{/other_user}","gists_url":"https://api.github.com/users/jineshkenandy/gists{/gist_id}","starred_url":"https://api.github.com/users/jineshkenandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jineshkenandy/subscriptions","organizations_url":"https://api.github.com/users/jineshkenandy/orgs","repos_url":"https://api.github.com/users/jineshkenandy/repos","events_url":"https://api.github.com/users/jineshkenandy/events{/privacy}","received_events_url":"https://api.github.com/users/jineshkenandy/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T01:05:23Z","updated_at":"2015-11-07T01:05:23Z","body":"@juherr Same result with 6.9.9 as well and I moved to annotation transformer."}}