的使用 在 NAnt 中失败
当我尝试运行使用 NAnt 的 mbunit 编写的单元测试时,我陷入了困境。 当我在 NAntbuilder 中尝试这行代码时。
<mbunit
report-types="Html;Xml;Text"
report-filename-format="${test_results.file}"
report-output-directory="${test_results.directory}"
halt-on-failure="true"
failonerror="true">
<assemblies>
<include name="${build.directory}\*Test*dll" />
</assemblies>
</mbunit >
我收到错误消息
BUILD FAILED
./.../mbunit.build(26,5):
Invalid element
我已将 mbunit.framework.dll、quickgraphalgorithm.dll、quickgraph.dll 复制到 NAnt 的 bin 文件夹中。
你们能帮我运行 NAnt 的 mbunit 测试吗?
提前致谢,
加内什
I got stuck up when I tried to run the Unit Test written using mbunit from NAnt. when I tried this lines of code in NAntbuilder.
<mbunit
report-types="Html;Xml;Text"
report-filename-format="${test_results.file}"
report-output-directory="${test_results.directory}"
halt-on-failure="true"
failonerror="true">
<assemblies>
<include name="${build.directory}\*Test*dll" />
</assemblies>
</mbunit >
I got an error message
BUILD FAILED
./.../mbunit.build(26,5):
Invalid element <mbunit>. Unknown task or datatype.
I have copied the mbunit.framework.dll, quickgraphalgorithm.dll,quickgraph.dll to NAnt's bin folder.
Could you please any of you help me out to run the mbunit test from NAnt.
Thanks in Advance,
Ganesh
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这篇博客文章关于 MbUnit 和 NAnt 列出了需要复制到 NAnt bin 目录的程序集。 据我从您的帖子中了解到,您还需要:
This blog post about MbUnit & NAnt lists the assemblies you need to copy to the NAnt bin directory. As far as I can understand from your post you also need:
我正在使用最新的 Gallio 框架从 Nant 运行 mbUnit 测试,但该包中没有 MbUnit.Tasks.dll 文件。 有一个 Gallio.NAntTasks.dll 文件,但 Nant 抱怨说“扫描 Gallio.NAntTasks.dll 扩展失败。无法加载一种或多种请求的类型。”
I'm using the latest Gallio framework to run mbUnit tests from Nant, but there's no MbUnit.Tasks.dll file in that package. There's a Gallio.NAntTasks.dll file, but Nant complains that there was a "Failure scanning Gallio.NAntTasks.dll for extensions. Unable to load one or more of the requested types."