Child pages
  • VSTest.Console Runner

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

VSTest.Console supports custom loggers, i.e. libraries that can handle events that are occurring when tests are being executed. For TeamCity 9.0.x there exists a custom logger that provides real time test reporting.
Logger must be installed manually on agent machine, as it requires dlls to be copied in Extensions folder of VSTest.Console. Installation of custom logger does not require agent restart.

  • Download the custom logger
  • Extract the contents of the downloaded archive on the agent machine:
    • for VisualStudio 2015 - to PROGRAM_FILES\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions
    • for VisualStudio 2013 - to PROGRAM_FILES\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions
    • for VisualStudio 2012 - to PROGRAM_FILES\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions
  • Check that the custom logger was installed correctly by executing vstest.console.exe /ListLoggers in the console on agent machine. If the logger was installed correctly, you will see the logger with FriendlyName TeamCity listed:

    Info
    iconfalse

    VSTest.TeamCityLogger.TeamCityLogger
    Uri: logger://TeamCityLogger
    FriendlyName: TeamCity

...

TeamCity Version

Build Number

Plugin Archive

TeamCity Logger

8.1.x+

30168

vstest.zip

N/A

9.0.x+

32407

vstest.zip

VSTest.TeamCityLogger.zip

The plugin is compatible with TeamCity 8.1 and newer

...