Problems with restarted JUnit tests

Hello to all TeamCity support!
We have a problem with junit tests, restarted at teamcity build, running in Ant.
Our tests run in parallel <junit> tasks, with enabled Teamcity junit support (with teamcity junit formatter etc).
When some of our tests failed, we may leave it to restart after all tests finished, in separate ant task, running in same
So, some test may run twice: first time as "failed" and second time as "restarted - successful".

What is the problem is: teamcity cant "fix" first, "failed" test, and, in tests report i see two same tests, failed and successful.
Here is the example image with some of restarted tests (other tests are removed from report).

failed_test_is_not_fixed.png
Can i "fix" those failed tests somehow?
I've found a REST api for tests:
http://confluence.jetbrains.com/display/TCD8/REST+API#RESTAPI-Tests

But, i'm not sure, can i use DELETE REST command to remove some test (failed, restarted, and "fixed" this way).
What is the best way here?
Is there a way more simple than post-process a teamcity build?
And, is such post-process possible?

1 comment
Comment actions Permalink

Hi,

It is impossible to delete tests using REST API.
We have a related issue http://youtrack.jetbrains.com/issue/TW-24212, please watch.

0

Please sign in to leave a comment.