Hi,
I have the same problem with getting unit tests running during an automated build. The tests run fine on my local VSTD, but when I perform the same build (Debug/Any CPU) on the build server, I receive the following message in the build log:
Starting execution...
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : No tests to execute.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : There are no results to be published.
I only have VSTD installed on the build server, and also don't have a tester version for my local machine (thus, can't create a test list). So, how can I get my unit tests to run? What exactly do I need to specify in the build file? What do I need to inject into my .vsmdi file? The .vsmdi file looks like this right now:
<? xml version="1.0" encoding="utf-8"?>
< Tests>
< edtdocversion branch="retail" build="50727" revision="42" />
< TestCategory type="Microsoft.VisualStudio.TestTools.Common.TestCategory">
< id type="Microsoft.VisualStudio.TestTools.Common.TestCategoryId">
< id type="System.Guid">8c43106b-9dc1-4907-a29f-aa66a61bf5b6</id>
</ id>
< name type="System.String">Lists of Tests</name>
< description type="System.String" />
< enabled type="System.Boolean">True</enabled>
< parentCategoryId type="Microsoft.VisualStudio.TestTools.Common.TestCategoryId">
< id type="System.Guid">00000000-0000-0000-0000-000000000000</id>
</ parentCategoryId>
< runConfiguration type="Microsoft.VisualStudio.TestTools.Common.Link">
< id type="System.Guid">76825ddc-8a49-4d1f-bfba-1428c97c2d76</id>
< name type="System.String">AiopServer</name>
< storage type="System.String">aiopserver.testrunconfig</storage>
< type type="System.Type, mscorlib">Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration</type>
< enabled type="System.Boolean">True</enabled>
</ runConfiguration>
</ TestCategory>
</ Tests>
I would appreciate any help on this.
Thanks |