Why is MSTest executed when it's not a build step?
With just 2 build steps configured, MSBuild and Duplicates. I cannot figure out why there is an extra set of logs that implies to me it's running MSTest. Currently the build runs unit test using vstest.console as an exec target in our MSBuild script. Seen below:
[11:42:01][Exec] "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow/vstest.console.exe"
But from the build logs there is a MSTest run that was never configured running taking up time in what should be a fast build: "[11:43:03] [Step 1/3] MSTest"
This is a larget snippet of the build logs.
[11:39:31]Updating sources: agent side checkout (36s)
[11:42:01][Exec] "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow/vstest.console.exe"
But from the build logs there is a MSTest run that was never configured running taking up time in what should be a fast build: "[11:43:03] [Step 1/3] MSTest"
This is a larget snippet of the build logs.
[11:39:31]Updating sources: agent side checkout (36s)
[11:40:07]Step 1/3: Compile and Unit test runner (MSBuild) (3m:32s)
[11:40:07] [Step 1/3] Starting: C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MsBuildBootstrap.exe /workdir:C:\BuildAgent\work\efca1767179bcf42 "/msbuildPath:C:\Program Files (x86)\MSBuild\12.0\bin\MSBuild.exe"
[11:40:07] [Step 1/3] in directory: C:\BuildAgent\work\efca1767179bcf42
[11:40:20] [Step 1/3] src\BuildInstallers.proj: Build targets: unittest;CodeAnalysis (3m:16s)
[11:40:20] [src\BuildInstallers.proj] Compile (1m:40s)
[11:42:00] [src\BuildInstallers.proj] UnitTest (1m:02s)
[11:43:03] [src\BuildInstallers.proj] CodeAnalysis (34s)
[11:43:03] [Step 1/3] MSTest
[11:43:37] [Step 1/3] Importing data from 'C:\BuildAgent\work\efca1767179bcf42\src\FxCopResults.xml' (360.32 KB) with 'FxCop' processor
[11:43:38] [Step 1/3] Process exited with code 0
[11:43:39]Step 2/3: Check Duplicates (Duplicates finder (.NET)) (49s)
[11:44:29]Step 3/3: Inspections (.NET)
[11:44:29]Waiting for 2 service processes to complete
[11:44:29]MSTest report watcher
[11:44:29]Publishing internal artifacts
[11:44:29]Publishing artifacts (2s)
How can I stop the MSTest step from running?
Please sign in to leave a comment.
It looks like as if it is configured in the build file.
MSTest is not the test runner for the UnitTest target. It's vstest.console.exe.
Please check (or post) the contents of the file BuildInstallers.proj
Where is the target "Build" defined?
Is the option "targets" defined in the Build Runner? (see https://confluence.jetbrains.com/display/TCD9/MSBuild)
The targets parameter of the msbuild step is set to: unittest CodeAnalysis
Build is defined in the msbuild toolset version -> Mircosoft.Common.targets