Missing testFinished service message doesn't make the test failed

Completed

We have a custom testing framework which reports tests to TeamCity using service messages. When we send ##teamcity[testStarted ... ] service message and we don't send ##teamcity[testFinished ... ] message, because the test crashes, the test is reported as successful.

0
3 comments

Hi Antonín, 

This is expected behaviour. The testFailed message is mandatory for a test to be treated as a failed one, as described in our documentation: 

> If the testFailed message is not present, the test is regarded successful

0

I understand that, but there could be cases where the custom framework just crashes somewhere for any reason and the test just doesn't finish at all. (No testFinished message.) In that case, I'd expect the test to be reported at least as unfinished, if not failed.

0

Hi Antonín, 

Sounds reasonable. I found a similar issue in our bug-tracker: https://youtrack.jetbrains.com/issue/TW-62224

I suggest you vote for this issue and watch it. If you describe your user-story in the ticket, it might help us as well.

0

Please sign in to leave a comment.