{"action":"created","issue":{"url":"https://api.github.com/repos/hcoles/pitest/issues/334","repository_url":"https://api.github.com/repos/hcoles/pitest","labels_url":"https://api.github.com/repos/hcoles/pitest/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/hcoles/pitest/issues/334/comments","events_url":"https://api.github.com/repos/hcoles/pitest/issues/334/events","html_url":"https://github.com/hcoles/pitest/issues/334","id":217249243,"number":334,"title":"TestNG 6.10+ skips tests due to duplicate listener: org.pitest.testng.TestNGAdapter","user":{"login":"MartinKanters","id":10269942,"avatar_url":"https://avatars1.githubusercontent.com/u/10269942?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinKanters","html_url":"https://github.com/MartinKanters","followers_url":"https://api.github.com/users/MartinKanters/followers","following_url":"https://api.github.com/users/MartinKanters/following{/other_user}","gists_url":"https://api.github.com/users/MartinKanters/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinKanters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinKanters/subscriptions","organizations_url":"https://api.github.com/users/MartinKanters/orgs","repos_url":"https://api.github.com/users/MartinKanters/repos","events_url":"https://api.github.com/users/MartinKanters/events{/privacy}","received_events_url":"https://api.github.com/users/MartinKanters/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-03-27T13:39:59Z","updated_at":"2017-04-03T09:33:41Z","closed_at":"2017-03-31T13:06:40Z","body":"### Issue description\r\n\r\nI am having issues with some versions of pitest together with some versions of TestNG.\r\nIn the pitest logs I see the following error: \"Ignoring duplicate listener : org.pitest.testng.TestNGAdapter\" exactly as many times as mutants there are made **minus 1**.\r\nThe result is that pitest mutants are surviving because the test stops due to a `SkipException` (org.testng.SkipException: skipping). This gives a lot of false positives and errors in the logs.\r\n\r\n### Versions\r\n\r\n| | | TestNG | | |\r\n| --- | --- | --- | --- | --- |\r\n| | | 6.9.13.6 | 6.10 | 6.11 |\r\n| **pi test** | 1.1.4  | OK | OK   | OK   |\r\n| | 1.1.5  | OK | NOK  | NOK  |\r\n| | 1.1.11 | OK | NOK  | NOK  |\r\n\r\n### Test project\r\n\r\nI have made the following minimal project to test it: https://github.com/MartinKanters/pitest-testng-issues\r\n\r\n### Log excerpt\r\n\r\n```\r\nstdout  : [TestNG] [WARN] Ignoring duplicate listener : org.pitest.testng.TestNGAdapter\r\nstderr  : org.testng.SkipException: skipping\r\n        at org.pitest.testng.TestNGAdapter.onTestStart(TestNGAdapter.java:74)\r\n        at org.testng.internal.Invoker.runTestListeners(Invoker.java:1739)\r\n        at org.testng.internal.Invoker.runTestListeners(Invoker.java:1714)\r\n        at org.testngstderr  : .internal.Invoker.invokeMethod(Invoker.java:640)\r\n        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:869)\r\n        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1193)\r\n...\r\n```\r\n\r\n~~### Related TestNG issue~~\r\n\r\n~~I believe [this issue](https://github.com/cbeust/testng/issues/1400) is related, but I am not sure whether the issue should be fixed in only TestNG or in pitest as well as I don't know the projects well enough.~~"},"comment":{"url":"https://api.github.com/repos/hcoles/pitest/issues/comments/291093876","html_url":"https://github.com/hcoles/pitest/issues/334#issuecomment-291093876","issue_url":"https://api.github.com/repos/hcoles/pitest/issues/334","id":291093876,"user":{"login":"MartinKanters","id":10269942,"avatar_url":"https://avatars1.githubusercontent.com/u/10269942?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinKanters","html_url":"https://github.com/MartinKanters","followers_url":"https://api.github.com/users/MartinKanters/followers","following_url":"https://api.github.com/users/MartinKanters/following{/other_user}","gists_url":"https://api.github.com/users/MartinKanters/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinKanters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinKanters/subscriptions","organizations_url":"https://api.github.com/users/MartinKanters/orgs","repos_url":"https://api.github.com/users/MartinKanters/repos","events_url":"https://api.github.com/users/MartinKanters/events{/privacy}","received_events_url":"https://api.github.com/users/MartinKanters/received_events","type":"User","site_admin":false},"created_at":"2017-04-03T09:33:41Z","updated_at":"2017-04-03T09:33:41Z","body":"Verified that the fix is working. Thanks for your quick response to this issue!"}}
{"actor":{"display_login":"MartinKanters"}}