We installed TFS to automatically build when we register, this works fine.
Our problem is how to get unit tests to run on the server?
Open the TeamBuildType file (TFSBuild.proj). There you will see a comment similar below ...
<!-- TEST ARGUMENTS If the RunTest property is set to true then the following test arguments will be used to run tests. Tests can be run by specifying one or more test lists and/or one or more test containers. To run tests using test lists, add MetaDataFile items and associated TestLists here. Paths can be server paths or local paths, but server paths relative to the location of this file are highly recommended: <MetaDataFile Include="$(BuildProjectFolderPath)/HelloWorld/HelloWorld.vsmdi"> <TestList>BVT1;BVT2</TestList> </MetaDataFile> To run tests using test containers, add TestContainer items here: <TestContainer Include="$(OutDir)\HelloWorldTests.dll" /> <TestContainer Include="$(SolutionRoot)\TestProject\WebTest1.webtest" /> <TestContainer Include="$(SolutionRoot)\TestProject\LoadTest1.loadtest" /> Use %2a instead of * and %3f instead of ? to prevent expansion before test assemblies are built -->
NUnit-Tests, MSBuild-Task, Build-.proj. VS-Integrated Tests, Build- Script . () Build-.proj.
, , . MSBuild script, . MSBuild , . , - MSBuild.
Build-Machine. NUnit NUnit-, VS Test Edition Loadtests Webtests ..
, , Build-Server.
Source: https://habr.com/ru/post/1705718/More articles:Skipping jQuery / javascript - javascriptEnter numeric input for a mobile site - cssDrag item added to sorted list - jqueryInstall Windows CE on an x86 embedded device - windows-ceASP.NET The best way to keep label.text between postbacks using PageMethods - ajaxRegular expression to allow character set and forbid others - javaИзменение порядка вложений LINQ to SQL - c#Any solution or workaround for serializing SQLParameter to WCF? - .netCalculating a calendar in bash - command-lineHow to find out which request path is missing in the 404 error handler in iis7? - c #All Articles