How to set Additional command line parameters for MSTest runner


I want to configure build step on TeamCity to run the unit test, and I want to specify addtional parameters,  I am not sure if it is correct to input /platform:x64 as the additional parameters? There will be error in the build log but without detailed error information


Runner type:
      -- Choose build runner type --                                                   .NET Process Runner         Ant         Command Line         Duplicates finder (.NET)         Duplicates finder (Java)         FxCop         Gradle         Inspections (.NET)         Inspections (IntelliJ IDEA)         IntelliJ IDEA Project            Maven         MSBuild         MSpec         MSTest         NAnt         NuGet Installer         NuGet Pack         NuGet Publish         NUnit         Powershell         Rake         Visual Studio (sln)         Visual Studio 2003         VSTest.Console Tests         Xcode Project                        
Additional command line parameters:
Enter additional command line parameters for MSTest.exe


[17:56:17][Step 2/2] Microsoft (R) Test Execution Command Line Tool Version 12.0.21005.1
[17:56:17][Step 2/2] Copyright (c) Microsoft Corporation. All rights reserved.
[17:56:17][Step 2/2]
[17:56:17][Step 2/2] No Team Foundation Server specified for publish operation.
[17:56:17][Step 2/2] For switch syntax, type "MSTest /help"
[17:56:17][Step 2/2] Process exited with code 1
[17:56:17][Step 2/2] Step MSTest failed
Comment actions Permalink

The runner type is  MSTest

Comment actions Permalink

Hi Carlos,

You can specify additional command line parameters as noted in the here:

To investigate the issue please try to run the build via command line on agent machine as noted in guidelines.


Please sign in to leave a comment.