Teamcity MSTest 10.0 no suitable build agents error
I'm sim开发者_开发技巧ply trying to execute an MSTest project after my build but for some reason I'm getting unmet requirements that state system.MSTest.10.0 exists for my project.
All I did was add a build step, selected Runner type MSTest, selected %system.MSTest.10.0% for my path to MSTest which said it should be detected automatically, then added the reference to my test project library.
What steps am I missing? Do I have to copy over the MSTest executable to some directory? TeamCity's installation documents do not mention any other steps that need to be taken to get this working properly.
There is a solution!
After searching on the internet i've found that other users asked the same question on stackoverflow: Can I use mstest.exe without installing Visual Studio?
I've installed the "agents" from the 2013 version on my build agent and it is working fine now. You do not need the "agent controller" from this package to have a compatible agent.
From the TeamCity MSTest documentation (in the autodetection section) it looks like you do need to have VS.NET installed on the build server or at have the MSTest.exe.
And again, in the TeamCity Supported Platforms and Environments documentation it clearly states:
MSTest (dedicated build runner; requires appropriate Microsoft Visual Studio edition installed on build agent)
MStest is installed only with Visual Studio, so like already was said. It's not bundled in Teamcity. Does the agent machine have VS installed? If you want to use that test framework runner then you need to have that. So that agent says that because it's not there. If that's a problem use nunit which Teamcity does come bundled with.
精彩评论