Skip to content

nickers/vstest.teamcity.logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Visual Studio 2012 Teamcity tests runner (kinda)

VSTest logger for TeamCity

Why

Visual Studio 2012 gives you Fakes & Shims. Unfortunately you must use vstest.console.exe to run these tests in TeamCity (or ShimsNotSupportedException will be thrown in your face) [3]. This means no more "Test" tab in build results. Unles you use this logger.

Logger is attached to vstest.console.exe to print output in format required by TeamCity[2]. I can't promise antyhing. For me it just works (I hope).

How

From Vikram Agrawal blog entry [1]:

There are two requirements for custom test logger

  1. Implement interface Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestLogger Interface can be found in �C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Microsoft.VisualStudio.TestPlatform.ObjectModel.dll�

  2. Assembly containing logger implementation to be present in place where extensions are searched like "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions" Assembly can be installed with VSIX like test adapters. In that case use /UseVSIXExtensions parameter also.

Usage:

vstest.console.exe <testdll> /logger:TeamCityLogger

Links

  1. http://blogs.msdn.com/b/vikramagrawal/archive/2012/07/26/writing-loggers-for-command-line-test-runner-vstest-console-exe.aspx
  2. http://confluence.jetbrains.com/display/TCD7/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ReportingTests
  3. http://blog.degree.no/2012/09/unit-testing-visual-studio-2012-fakes-in-team-city/

About

VSTest logger for TeamCity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages