gpt4 book ai didi

testing - Gallio 与 Nant 和 Hudson 的集成

转载 作者:行者123 更新时间:2023-11-28 20:33:11 24 4
gpt4 key购买 nike

情况是这样的,我试图在服务器的构建/部署过程之后触发一组 Gallio 测试。构建脚本是 Nant,我们通过 Hudson 将它激活到远程服务器。

经过一番努力后,我在构建脚本中遇到了以下错误。注意:我清理了文件路径并将它们替换为 (Description)

Buildfile: file:///(Build script location)
Target framework: Microsoft .NET Framework 4.0
Target(s) specified: build-robot


[include] Including file (Build script location)
[property] Read-only property "doDeploy" cannot be overwritten.
[property] Read-only property "runSmokeTests" cannot be overwritten.
[tstamp] Tuesday, November 22, 2011 3:51:01 PM.
[tstamp] Tuesday, November 22, 2011 3:51:01 PM.
[echo] Setting RELEASE mode to true
[echo] The Output Folder is set to: (Nightly build server)
[echo] Loading Gallio Task from: (Source dir path)\References\Gallio\Gallio.NAntTasks.dll
[loadtasks] Scanning assembly "Gallio.NAntTasks" for extensions.

global.failure:


tear.down:

[echo] In tear.down...

clean:

[echo] Starting clean target...
[echo] End of clean target...

BUILD FAILED - 0 non-fatal error(s), 2 warning(s)

(output dir)(30,3):
Failure scanning
"(Source dir path)\References\Gallio\Gallio.NAntTasks.dll" for extensions.
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

这是我加载程序集的脚本区域。

<!-- Load Gallio Tasks for automated Testing -->
<echo message="Loading Gallio Task from: ${path::combine(repoDirectory,'Source\References\Gallio\Gallio.NAntTasks.dll')}" />
<loadtasks assembly="${path::combine(repoDirectory,'Source\References\Gallio\Gallio.NAntTasks.dll')}" if="${file::exists(path::combine(repoDirectory,'Source\References\Gallio\Gallio.NAntTasks.dll'))}" />
<echo message="Failed to find Gallio.NantTasks.dll" unless="${file::exists(path::combine(repoDirectory,'Source\References\Gallio\Gallio.NAntTasks.dll'))}" />
<echo message="${LoaderExceptions}" />
<echo message="Gallio Tasks Loaded..." />

还有 Gallio 任务本身。

<target name="run.automated.tests"> 
<echo message="Begining Automated Testing..." />
<property name="nant.onfailure" value="global.failure" />

<gallio result-property="exitCode" failonerror="false" >

<files>
<include name="${path::combine(outputDirectory,'bin\AutomatedQATest.dll')}" />
</files>
<!--
<runner-extension value="AutomatedQATest,Gallio.AutomatedQATest" />
<assemblies>
<include value="${path::combine(outputDirectory,'bin\AutomatedQATest.dll')}" />
</assemblies> -->
</gallio>
<fail message="Oh no!" if="${exitCode} != '0'}" />
</target>

有什么想法吗?我今天大部分时间都在寻找答案,谷歌要么向我提供贬值的解决方法,要么向我提供行不通的想法。

谢谢大家!

最佳答案

启用 Fusion 日志记录以获得更详细的错误消息。

请参阅本教程:http://www.hanselman.com/blog/BackToBasicsUsingFusionLogViewerToDebugObscureLoaderErrors.aspx

我认为缺少一个或多个依赖项。

关于testing - Gallio 与 Nant 和 Hudson 的集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8235179/

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