Test case got ignored by teamcity

Hi there,

in my project there are 5k~ish test cases run after build

The test case reporting is triggered by service message "testStarted / testFinished "

and there are some always got ignored by teamcity, and this message shown at the very end of the build log:

xxx.exe Test ignored: [test case name] ignore reason: Interrupted by TeamCity on build stop

I wonder what is the actual cause?  it is fine when using Junit reporting (and then we changed to service message reporting)
 
regards,
Philip

 

0
1 comment
Hi! The issue can be related to which exact service messages are issued and what issues the messages. In old TeamCity versions, it used to be possible to report a successful test by just issuing the `testStarted` message. After the change https://youtrack.jetbrains.com/issue/TW-50931, a `testFinished` message is also required. We have been reported about some 3rd party plugins that don't issue the `testFinished` message.

I would recommend enabling the service message logging and inspecting the full build log (go to the Build Log page > Download log > select Full build log or Zip) to make sure both messages are issued for the tests that are ignored.

To enable the service message logging, you can edit the build configuration parameters and add the parameter with the name `teamcity.build.serviceMessages.logOriginal` and the value set to `true`.

Cheers,
Anatoly
0

Please sign in to leave a comment.