We are using Gradle 2.3, TestNG6.7 with RetryAnalyzer. In my build.gradle I have set useDefaultListeners=true inside the useTestNG() task.
The problem is when tests executes, Gradle marks a test that executed 2 times and finally passed as failed. TestNG correctly picks this as passed. So, now I have 100% pass in TestNG report but few failures in Gradle Tests tab.
Also, Gradle status in Teamcity is able to pick that test was run 2 times with 1 failure. I see under status: Failure 1 of 2, but Gradle is choosing to mark final status as failed.
I have seen multiple posts on this topic on this forum as well as other forums but none seems to be aware of any answers
Any help is appreciated!