TFS Build Server 2013 and XUnit

I am having trouble setting up a TFS build server on a locally hosted build machine.

I have a normal test framework i.e.

--\HellowWorld\HelloWorld.sln
--\HellowWorld\HelloWorld.csproj
--\HelloWorld.Tests\HellowWorld.Tests.csproj

      

I am using visualstudio online and a local server to build and deploy.

I have no problem getting a C # .net application to download source, build and deploy.

I created a folder for XUNIT with the required DLLs and checked in TFS

In the dialog box for the build server, for the source control path to custom assemblies as follows

$ / IT Development / Bin / XUnit

This folder contains the following DLLs

xunit.abstractions.dll
xunit.runner.utility.dll
xunit.runner.visualstudio.settings.dll
xunit.runner.visualstudio.testadapter.dll

      

The following blog post suggests that this should be enough

http://social.msdn.microsoft.com/Forums/vstudio/en-US/02bce20c-1e5b-47cc-8f64-0ff8aa5a19cf/tfs-2012-build-to-run-xunittest?forum=tfsbuild

      

I am getting the following in the build output

<R β†’ $ / IT Development /HelloWorld/HelloWorld/HelloWorld.sln compiled $ / IT Development / HelloWorld / HelloWorld / HelloWorld.sln - 0 errors, 6 warnings, View log file No test results No code coverage results Effective tests No tests suffered.
+3


source to share


1 answer


I solved this by installing Visual Studio Professional on the build server. This gives access to the VisualStudio Test Runner on the build machine. Brute force, but it was the easiest option.



+1


source







All Articles