Testsresults linking to images

Hey,

I'm _loving_ teamcity so far.

I have some tests that I"m running using TeamCity, and when they fail, the result is an error image, instead of a failed assert.
I would like to modify my tests to output a link to this image in such a way that when I inspect the test in TeamCity, the link actually takes me to the image (which is part of the artifacts of the build).

Even better would it be if I could get this image to display inline in the view of the test, maybe using some embedded html in the test failure xml tag.

Can either of these be done? If so, if you could point me in the right direction.

Thanks, Lucas

1 comment
Comment actions Permalink

This can be done with help of plugin. First of all you will need to publish these images as artifacts of your build. Then your plugin could format presentation of the test failure shown on the build results page. For such plugin you need to provide extension: jetbrains.buildServer.serverSide.FailedTestOutputFormatter

Read more about TeamCity extensibility: http://www.jetbrains.net/confluence/display/TCD4/Extending+TeamCity

0

Please sign in to leave a comment.