gpt4 book ai didi

tfs - Chutzpah 与 TFS 2012 的集成

转载 作者:行者123 更新时间:2023-12-04 20:48:41 25 4
gpt4 key购买 nike

我的团队正在尝试将 Chutzpah 集成到 TFS 2012 构建过程中。我们使用了 this blog post作为我们的起点。

在高层次上,实际问题是构建代理上下文中的 Visual Studio 测试运行程序根本找不到 Chutzpah Hook 。所以虽然我们可以定义 **\*.js作为测试源,如果没有真正找到和初始化 Chutzpah bootstrap ,测试运行程序不会对这些文件做任何事情。

在更详细的层面上,当我们检查加载构建 Controller 的自定义程序集的日志时,我们会收到三个相关消息:

Summary: There were 0 failures, 2 errors and 1 warnings loading custom activities and services.
Error: Method 'ToXml' in type 'Chutzpah.VS2012.TestAdapter.ChutzpahAdapterSettings' from assembly 'Chutzpah.VS2012.TestAdapter, Version=2.2.0.171, Culture=neutral, PublicKeyToken=1ca802c37ffe1896' does not have an implementation.
Error: API restriction: The assembly '...\AppData\Local\Temp\VSTFSBuild\8c8e9402-1169-4782-99a9-ce42f83be8f0\A1288811191\Chutzpah\Microsoft.VisualStudio.TestPlatform.ObjectModel.dll' has already loaded from a different location. It cannot be loaded from a new location within the same appdomain.
Warning: Could not load file or assembly '...\AppData\Local\Temp\VSTFSBuild\8c8e9402-1169-4782-99a9-ce42f83be8f0\A1288811191\Chutzpah\phantomjs.exe' or one of its dependencies. The module was expected to contain an assembly manifest.

除了这些信息,我们或多或少被卡住了。我很想听听真正让 Chutzpah 在独立的 2012 构建服务器上运行的人的意见,以便我们可以比较配置。

最佳答案

错误:API 限制:程序集 '....

表示 TFS 正在两个不同的位置查找 dll。您可以将模式更改为检查并查看是否将\*\*test.dll 作为任何测试程序集的值设置并将其更改为 *test*.dll。这将防止它多次加载它。

另一个错误可能是因为未重建测试项目。
尝试重新构建测试项目。

我希望这有帮助。

关于tfs - Chutzpah 与 TFS 2012 的集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13184146/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com