Search code examples
testngtestng-eclipse

testng-failed.xml is not getting generated even if the run contains failures


testng-failed.xml is not getting generated even if the run contains failures.

I am using Eclipse Version: 2019-06 (4.12.0) Build id: 20190614-1200

Testng 7.0.0

This used to generate some time before and we were using it for rerunning the failed tests. But i am not sure why this is not generating now even if the errors are present.

Is there any specific reason that it wouldn't generate?


Solution

  • I see that this happens only when there is a listener which captures all the fails and skips. On removing the listener failed.xml created successfully.