Enables TeamCity to display output when tests are run through VSTest.console.exe. Also includes a MulticastLogger to log to multiple test loggers simultaniously.
This is a VS Test 2012 Logging Adapter.
Usage:
vstest.console.exe tests.dll /logger:TeamCity /UseVsixExtensions
If you would like to use another logger in conjunction with the TeamCityLogger you can use the MulticastLogger!
Simply comma separate the loggers in loggers
parameter, if any of the loggers have parameters you can useLoggerName.ParameterName
to set the ParameterName
parameter. For example:
vstest.console.exe tests.dll /logger:"Multicast;loggers=TeamCity,trx,TfsPublisher;TfsPublisher.Collection=<team project url>;TfsPublisher.BuildName=<build name>;TfsPublisher.TeamProject=<team project name>;" /UseVsixExtensions
You may also alias loggers, then you can set parameters on the aliases:
vstest.console.exe tests.dll /logger:Multicast;logger1=TeamCity;logger2=trx;logger3=TfsPublisher;logger3.Collection=<t
eam project url>;logger3.BuildName=<build name>;logger3.TeamProject=<team project name>;