【发布时间】:2010-06-23 17:16:57
【问题描述】:
我想在不安装 Gallio 的情况下使用 Icarus 和/或 Echo 运行 MbUnit 测试。我已将GallioBundle/bin 中的所有文件复制到我们项目文件夹中名为Third Party/MbUnit 的文件夹中。
当我双击Gallio.Icarus.exe 时,它不会加载或执行任何操作。
当我从命令行运行 gallio.echo.exe 时,我收到以下错误:
开始时间:下午 1:07 初始化运行时和加载插件。 停止时间:下午 1:07(总执行时间:0.313 秒) 错误:发生致命异常。 Gallio.Runtime.RuntimeException:无法解析服务类型“Gallio.Runner.Projects.ITestProjectManager”的组件,因为似乎没有为该服务类型注册和启用任何组件。 在 c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Runtime\Extensibility\RegistryServiceLocator.cs:line 202 中的 Gallio.Runtime.Extensibility.RegistryServiceLocator.ResolveNonDisabledDescriptor(键入 serviceType) 在 c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Runtime\Extensibility\RegistryServiceLocator.cs:line 161 中的 Gallio.Runtime.Extensibility.RegistryServiceLocator.ResolveImpl(键入 serviceType) 在 c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Runtime\Extensibility\RegistryServiceLocator.cs:line 52 中的 Gallio.Runtime.Extensibility.RegistryServiceLocator.ResolveTService 在 c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Runner\TestLauncher.cs:line 511 中的 Gallio.Runner.TestLauncher.RunWithRuntime() 在 c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Runner\TestLauncher.cs:line 474 中的 Gallio.Runner.TestLauncher.Run() 在 Gallio.Echo.EchoProgram.RunTests(ILogger 记录器) 在 Gallio.Echo.EchoProgram.RunImpl(String[] args) 在 Gallio.Runtime.ConsoleSupport.ConsoleProgram`1.Run(IRichConsole console, String[] args) 在 c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Runtime\ConsoleSupport\ConsoleProgram.cs:第 198 行
但是,如果我从 d/l 文件夹中解压缩的位置运行它:
GallioBundle-3.1.397.0/bin Icarus UI 出现。另外...当我在命令行运行它时,gallio.echo 没有给出任何错误。这对我来说毫无意义,但确实如此。
为什么 Gallio 不能从我的项目文件夹中运行?
【问题讨论】:
标签: continuous-integration build-automation mbunit gallio