是否可以通过“调试\开始调试”在 MS VC# 2010 中开始调试 Gallio 测试用例?命令?
我有 dll 和 gallio 测试。
我在“项目属性\调试\启动外部命令”中指定:Gallio.Echo.exe
我还指定了“命令行参数”:/runner:IsolatedAppDomain Full\Path\To\My\Dll\With\Tests.dll
我指定了 / runner:IsolatedAppDomain 因为我想在同一进程中运行测试,这应该允许 MS VS 调试器自动连接到与 Gallio.Echo.exe 位于同一进程中的测试。 (至少对于 C++ 项目它有效)
当我执行“调试\开始调试”时,我收到以下警告:
[warning] File 'Tests.dll' is not supported by any installed test framework.
It will be ignored.
Location: Full\Path\To\My\Dll\With\Tests.dll
[ignored] Unsupported Tests.dll
Detected a probable test framework assembly version mismatch.
Referenced test frameworks: 'MbUnit, Version=3.1.0.0, Culture=neutral, PublicKeyToken=eb9cfa67ee6ab36e'.
Supported test frameworks: 'MbUnit, Version=3.3.0.0'.
我安装了最新的 gallio 版本 GallioBundle-3.3.458.0。
看来Gallio应该与Tests.dll具有相同的框架版本。 不过Gallio是2.0,我用的是4.0。
如何解决这个问题?
PS 现在我使用 TestDriven.Net。但这并不完全是我想要的,当我处理一个测试用例但有多个源文件时,使用起来不方便。
I have dll with tests for gallio.
I specified in "Project Properties \ Debug \ Start External Command": Gallio.Echo.exe
I also specfied "Command Line Arguments": /runner:IsolatedAppDomain Full\Path\To\My\Dll\With\Tests.dll
I specified /runner:IsolatedAppDomain because I want to run tests in the same process which should allow MS VS debugger to automatically connect to tests which are in the same process as Gallio.Echo.exe. (At least for C++ projects it works)
When I execute "Debug \ Start debugging" I obtain the following warning:
[warning] File 'Tests.dll' is not supported by any installed test framework.
It will be ignored.
Location: Full\Path\To\My\Dll\With\Tests.dll
[ignored] Unsupported Tests.dll
Detected a probable test framework assembly version mismatch.
Referenced test frameworks: 'MbUnit, Version=3.1.0.0, Culture=neutral, PublicKeyToken=eb9cfa67ee6ab36e'.
Supported test frameworks: 'MbUnit, Version=3.3.0.0'.
I installed lastest gallio version GallioBundle-3.3.458.0.
It seems that Gallio should have the same framework version as Tests.dll.
But Gallio is 2.0, and I use 4.0.
How to fix the issue?
P.S. Now I use TestDriven.Net
. But it is not exactly what I want, it is not convenient to use when I work with one test case but several source files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
TestDriven.Net
在上下文菜单“重复测试运行”中有选项TestDriven.Net
has option in context menu "Repeat Test Run"