Link to viewing the source code of an individual test

Is there a way to easily get a link to view the source code of each specific test? If a test fails, it would be super useful to be able to click on the test and either view the source code of the test either in the IDE or an external source viewer.

I am hoping that worst case I need to build a Page Extension plugin to accomplish this. However, it isn't clear to me whether or not any part of the system will will know how to determine which actual file contained each individual test.

3 comments
Comment actions Permalink

When the Visual Studio plugin for TeamCity is installed you can follow a link from the browser directly into the test method in Visual Studio.  It also pulls down stack trace and some other info which is also displayed in VS.  The plugin can be found under the link that is your login name in the top right of TeamCity.

0
Comment actions Permalink

I guess it is good to know that this is possible for Visual Studio. Maybe that would be a good place for me to start. I don't want to integrate with an IDE, I want to integrate with an external source viewer like GitHub or FishEye or something along those lines. Thanks for the pointer.

0
Comment actions Permalink

Hi

At the moment we allow to show sources in IDE - not only in Visual Studio, but in IDEA and Eclipse too.
On the web TeamCity can display changed files, but not all the sources.

Feel free to add this feature request to our tracker.

0

Please sign in to leave a comment.