我尝试从Visual Studio执行单元测试时遇到以下错误。我已经戳了一下,并重新安装了Gallio和TD.Net,但仍然得到了同样的错误。我对从哪里开始一无所知,搜索谷歌几乎没有出现......
Gallio.Loader.LoaderException: Gallio.Loader.LoaderException: Failed to setup the runtime. ---> Gallio.Runtime.RuntimeException: The runtime could not be initialized. ---> Gallio.Runtime.RuntimeException: Could not register component 'TDNetRunner.UI.PlaceholderPreferencePaneProvider' of plugin 'Gallio.TDNetRunner.UI' because it implements service 'Gallio.UI.PreferencePaneProvider' which was not found in the registry.
位于c:\ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ Extensibility中的Gallio.Runtime.Extensibility.PluginCatalog.RegisterComponents(IRegistry注册表,IList 1 topologicallySortedPlugins, IList
1 pluginDescriptors) \ PluginCatalog.cs:第225行
在Gallio.Runtime.Extensibility.PluginCatalog.ApplyTo(IRegistry注册表)的c:\ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ Extensibility \ PluginCatalog.cs:第69行
在Gallio.Runtime.DefaultRuntime.RegisterLoadedPlugins()在c:\ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ DefaultRuntime.cs:第270行
在C:\ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ DefaultRuntime.cs中的Gallio.Runtime.DefaultRuntime.Initialize():第170行
---内部异常堆栈跟踪结束---
在C:\ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ DefaultRuntime.cs中的Gallio.Runtime.DefaultRuntime.Initialize():第197行
在Gallio.Runtime.RuntimeBootstrap.Initialize(RuntimeSetup setup,ILogger logger)中的c:\ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ RuntimeBootstrap.cs:第74行
在C:\ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ Loader \ GallioLoaderBootstrap.cs中的Gallio.Runtime.Loader.GallioLoaderBootstrap.SetupRuntime(String runtimePath):第49行
---内部异常堆栈跟踪结束---
在Gallio.Loader.LoaderManager.LoaderImpl.SetupRuntime()
在Gallio.Loader.Isolation.IsolatedEnvironmentManager.IsolatedInitializer.SetupRuntime()
在Gallio.Loader.Isolation.IsolatedEnvironmentManager.IsolatedEnvironment.UnwrapException(Exception ex)
在Gallio.Loader.Isolation.IsolatedEnvironmentManager.IsolatedEnvironment.SetupRuntime()
在Gallio.Loader.SharedEnvironment.SharedEnvironmentManager.CreateSharedEnvironment()
在Gallio.Loader.SharedEnvironment.SharedEnvironmentManager.GetSharedEnvironment()
在Gallio.TDNetRunner.Core.LocalProxyTestRunner.CreateRemoteProxyTestRunner()
在Gallio.TDNetRunner.Core.LocalProxyTestRunner.RunImpl(IFacadeTestListener testListener,String assemblyPath,String cref,FacadeOptions facadeOptions)
在Gallio.TDNetRunner.Core.BaseProxyTestRunner.Run(IFacadeTestListener testListener,String assemblyPath,String cref,FacadeOptions facadeOptions)
System.Runtime.Remoting.ServerException:Gallio.Loader.LoaderException:Gallio.Loader.LoaderException:无法设置运行时。 ---> Gallio.Runtime.RuntimeException:无法初始化运行时。 ---> Gallio.Runtime.RuntimeException:无法注册组件' TDNetRunner.UI.PlaceholderPreferencePaneProvider'插件' Gallio.TDNetRunner.UI'因为它实现了服务' Gallio.UI.PreferencePaneProvider'这是在注册表中找不到的。
在Gallio.Runtime.Extensibility.PluginCatalog.RegisterComponents(IRegistry注册表,IList 1 topologicallySortedPlugins, IList
1 pluginDescriptors)
在Gallio.Runtime.Extensibility.PluginCatalog.ApplyTo(IRegistry注册表)
在Gallio.Runtime.DefaultRuntime.RegisterLoadedPlugins()
在Gallio.Runtime.DefaultRuntime.Initialize()
---内部异常堆栈跟踪结束---
在Gallio.Runtime.DefaultRuntime.Initialize()
在Gallio.Runtime.RuntimeBootstrap.Initialize(RuntimeSetup setup,ILogger logger)
在Gallio.Runtime.Loader.GallioLoaderBootstrap.SetupRuntime(String runtimePath)
---内部异常堆栈跟踪结束---
在Gallio.Loader.LoaderManager.LoaderImpl.SetupRuntime()
在Gallio.Loader.Isolation.IsolatedEnvironmentManager.IsolatedInitializer.SetupRuntime()
在Gallio.Loader.Isolation.IsolatedEnvironmentManager.IsolatedEnvironment.UnwrapException(Exception ex)
在Gallio.Loader.Isolation.IsolatedEnvironmentManager.IsolatedEnvironment.SetupRuntime()
在Gallio.Loader.SharedEnvironment.SharedEnvironmentManager.CreateSharedEnvironment()
在Gallio.Loader.SharedEnvironment.SharedEnvironmentManager.GetSharedEnvironment()
在Gallio.TDNetRunner.Core.LocalProxyTestRunner.CreateRemoteProxyTestRunner()
在Gallio.TDNetRunner.Core.LocalProxyTestRunner.RunImpl(IFacadeTestListener testListener,String assemblyPath,String cref,FacadeOptions facadeOptions)
在Gallio.TDNetRunner.Core.BaseProxyTestRunner.Run(IFacadeTestListener testListener,String assemblyPath,String cref,FacadeOptions facadeOptions)
在Gallio.TDNetRunner.Core.BaseProxyTestRunner.Run(IFacadeTestListener testListener,String assemblyPath,String cref,FacadeOptions facadeOptions)
在Gallio.TDNetRunner.GallioResidentTestRunner.Run(ITestListener testListener,String assemblyFile,String cref)
在TestDriven.TestRunner.AdaptorTestRunner.Run(ITestListener testListener,ITraceListener traceListener,String assemblyPath,String testPath)
在TestDriven.TestRunner.ThreadTestRunner.Runner.Run()
0传递,1失败,0跳过,耗时4.01秒(MbUnit v3.3)。
答案 0 :(得分:0)
我最近在安装了JetBrains ReSharper 7.1.10000.900,GallioBundle 3.4.14.0和TestDriven.NET 3.4.2808的Windows 8(32位)上运行Visual Studio 2012时遇到了类似的问题,假设您正在运行类似于在我的上面,我能够通过以下方式解决这个问题: