Importing Ant JUnit results gives "Success" when the tests failed to run

I have a build that runs tests that produce results compatible with TeamCity's "Ant JUnit" setting. When the tests run, it correctly reports the number of test failures and successes. But if the tests completely fail to run, producing no XML files, TeamCity reports "Success". I need it to report "Failure". Is there any way to achieve this?

1 comment
Comment actions Permalink

As a workaround you could generate special failure XML report with one test. Or you can use service messages to fail the build:


Please sign in to leave a comment.