English 中文(简体)
Teamcity MSTest 10.0没有合适的构建代理错误
原标题:Teamcity MSTest 10.0 no suitable build agents error

我只是想在构建后执行一个MSTest项目,但由于某种原因,我的项目中存在未满足的状态系统.MST.10.0的要求。

我所做的只是添加一个构建步骤,选择Runner类型MSTest,选择%system.MST.10.0%作为我的MSTest路径,它说它应该被自动检测,然后添加对我的测试项目库的引用。

我错过了哪些步骤?我是否必须将MSTest可执行文件复制到某个目录?TeamCity的安装文档没有提到任何其他需要采取的步骤,以使其正常工作。

问题回答

有一个解决方案!

在互联网上搜索后,我发现其他用户在stackerflow上问了同样的问题:我可以在不安装Visual Studio的情况下使用mstest.exe吗

我已经在我的构建代理上安装了2013版本的“代理”,现在运行良好。您不需要此程序包中的“代理控制器”就可以拥有兼容的代理。

TeamCity MSTest文档(在自动检测部分)看起来您确实需要在生成服务器上安装VS.NET,或者在上安装MSTest.exe。

再次,在TeamCity支持的平台和环境文档明确指出:

MSTest(专用的生成运行程序;需要在生成代理上安装相应的Microsoft Visual Studio版本)

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.





相关问题
Invoke callback in Moq

I have a method that performs an asynchronous service call. I call this class by passing in the callback. public void GetRights(EventHandler<GetRightsCompletedEventArgs> callback) { ...

Fluent NHibernate PersistenceSpecification CheckList

I am currently working on a college project in which we are using Fluent NHibernate. I am working on figuring how to create testing for our entities and Fluent mappings. I have, however, hit a dead ...

Why does Assert.AreEqual(1.0, double.NaN, 1.0) pass?

Short question, why does Assert.AreEqual(1.0, double.NaN, 1.0) pass? Whereas Assert.AreEqual(1.0, double.NaN) fails. Is it a bug in MSTest (Microsoft.VisualStudio.QualityTools.UnitTestFramework) or ...

Migrate from MSTest to XUnit

We are thinking about moving our tests from MSTest to XUnit. Is there any migration application that takes a MSTest and migrates it to XUnit? Also, if not, what should I look out for when doing this?...

Unit Testing .NET 3.5 projects using MStest in VS2010

There s a bug/feature in Visual Studio 2010 where you can t create a unit test project with the 2.0 CLR. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=483891&wa=...

Repeat mstest test run multiple times

Some of my mstest unit tests help detect multi-threading race conditions, and as such they are most useful when run many times in a row, but I only want to do this for specific test runs -- not all ...

热门标签