Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Kateroh,</p> <p>My setup looks like this (I'm using msbuild from a TFSbuild.proj):</p> <ol> <li><p>Build sln</p></li> <li><p>Copy all from output to %TEMP% (black magic :D) Don't know why but mstest is looking for references in %TEMP%.</p></li> <li><p>Run mstest with parms:</p></li> </ol> <p><code> "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe" /nologo /testcontainer:$(TestDir)\mylib.dll /resultsfile:$(TestResultFile) /runconfig:$(SlnDir)\AutomaticBuildTest.testrunconfig /searchpathroot:$(TestDir) /publish:mytfsserver /publishbuild:$(BuildDefinition) /flavor:Debug /platform:AnyCPU /teamproject:mytfsproject </code></p> <p>where AutomaticBuildTest.testrunconfig is bellow</p> <pre> <code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;TestSettings name="AutomaticBuildTest" id="eda99352-93e1-402e-9517-d04fffa66b35" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"&gt; &lt;!--&lt;Deployment enabled="false" /&gt;--&gt; &lt;Deployment enabled="true"&gt; &lt;DeploymentItem filename="D:\sa12\78\bin\Debug" /&gt; &lt;/Deployment&gt; &lt;NamingScheme baseName="BC2ALibraryTest" appendTimeStamp="false" useDefault="false" /&gt; &lt;!-- http://blogs.msdn.com/b/vstsqualitytools/archive/2009/12/01/executing-unit-tests-in-parallel-on-a-multi-cpu-core-machine.aspx --&gt; &lt;Execution location="Local" hostProcessPlatform="MSIL"&gt; &lt;!--http://msdn.microsoft.com/en-us/library/ms404663.aspx--&gt; &lt;ExecutionThread apartmentState="MTA" /&gt; &lt;Hosts skipUnhostableTests="false" /&gt; &lt;TestTypeSpecific&gt; &lt;UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b"&gt; &lt;AssemblyResolution applicationBaseDirectory="D:\sa12\78\bin\Debug"&gt; &lt;TestDirectory useLoadContext="false" /&gt; &lt;/AssemblyResolution&gt; &lt;/UnitTestRunConfig&gt; &lt;/TestTypeSpecific&gt; &lt;AgentRule name="LocalMachineDefaultRole"&gt; &lt;/AgentRule&gt; &lt;/Execution&gt; &lt;/TestSettings&gt; </code> </pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload