2012-05-17 33 views
0

我收到以下错误,尝试从Visual Studio中执行单元测试。我探讨了一下,并重新安装了Gallio和TD.Net,但仍然出现相同的错误。我在哪里开始那种毫无章法,而谷歌搜索变成了旁边没有......错误从Visual Studio使用TestDriven.Net运行MBUnit测试

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. 

在Gallio.Runtime.Extensibility.PluginCatalog.RegisterComponents(IRegistry注册表,IList的1 topologicallySortedPlugins, IList 1 pluginDescriptors在c) :\ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ Extensibility \ PluginCatalog.cs:line 225 at Gallio.Runtime.Extensibility.PluginCatalog.ApplyTo(IRegistry registry)in c:\ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ Extensibility \ PluginCatalog.cs:line 69 at c:\ Server \ Projects \ MbUnit v3.3 \ Gallio.Runtime.DefaultRuntime.RegisterLoadedPlugins() \ src \ Gallio \ Gallio \ Runtime \ DefaultRuntime.cs:行270 at Gallio.Runtime.De在C:\ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ DefaultRuntime.cs中的faultRuntime.Initialize():行170 ---内部异常堆栈跟踪的末端--- at Gallio (RuntimeSetup安装程序)中的.Runtime.DefaultRuntime.Initialize()在C:\ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ DefaultRuntime.cs中:第197行 .Runtime.RuntimeBootstrap.Initialize ILogger logger)在c:\ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ RuntimeBootstrap.cs中:第74行 at Gallio.Runtime.Loader.GallioLoaderBootstrap.SetupRuntime(String runtimePath)in c: \ Server \ Projects \ MbUnit v3.3 \ Work \ src \ Gallio \ Gallio \ Runtime \ Loader \ GallioLoaderBootstrap.cs:line 49 ---内部异常堆栈跟踪结束--- at Gallio.Loader.LoaderManager.LoaderImpl .SetupRuntime() at Gallio.Loader。 Isolation.IsolatedEnvironmentManager.IsolatedInitializer.SetupRuntime() 在Gallio.Loader.Isolation.IsolatedEnvironmentManager.IsolatedEnvironment.UnwrapException(异常前) 在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,字符串assemblyPath,字符串CREF ,FacadeOptions facadeOptions) at Gallio.TDNetRunner.Core.BaseProxyTestRunner.Run(IFacadeTestListener testListener,String assemblyPath,Strin g cref,FacadeOptions facadeOptions) System.Runtime.Remoting.ServerException:Gallio.Loader.LoaderException:Gallio.Loader.LoaderException:无法设置运行时。 ---> Gallio.Runtime.RuntimeException:运行时无法初始化。 ---> Gallio.Runtime.RuntimeException:无法注册插件'Gallio.TDNetRunner.UI'的组件'TDNetRunner.UI.PlaceholderPreferencePaneProvider',因为它实现了在注册表中找不到的服务'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() 在加利奥。 Runtime.DefaultRuntime.Initialize() ---在Gallio.Runtime.DefaultRuntime.Initialize() 内部异常堆栈跟踪--- 结束在Gallio.Runtime.RuntimeBootstrap.Initialize(RuntimeSetup设置,ILogger记录器) 在加利奥.Runtime.Loader.GallioLoaderBootstrap.SetupRuntime(String runtimePath) ---内部异常堆栈跟踪结束--- at Gallio.Loader.LoaderManager.LoaderImpl.SetupRuntime () at Gallio.Loader.Isolation.IsolatedEnvironmentManager.IsolatedInitializer。SetupRuntime() 在Gallio.Loader.Isolation.IsolatedEnvironmentManager.IsolatedEnvironment.UnwrapException(异常前) 在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,字符串assemblyPath,字符串CREF,FacadeOptions facadeOptions) 在Gallio.TDNetRunner.Core.BaseProxyTestRunner.Run(IFacadeTestListener testListener,String assemblyPath,String cref,FacadeOptions facadeOptions) 在Gallio.TDNetRunner.Core.BaseProxyTestRunner.Run(IFacadeTestListener testListener,字符串assemblyPath,字符串CREF,FacadeOptions facadeOptions) 在Gallio.TDNetRunner.GallioResidentTestRunner.Run(ITestListener testListener,字符串assemblyFile,字符串CREF) 在TestDriven.TestRunner.AdaptorTestRunner .RUN(ITestListener testListener,ITraceListener的TraceListener,字符串assemblyPath,字符串testPath) 在TestDriven.TestRunner.ThreadTestRunner.Runner.Run()

0通过,1失败,跳过0,把4.01秒(MbUnit的V3.3) 。

回答

0

我最近在安装了JetBrains ReSharper 7.1.10000.900,GallioBundle 3.4.14.0和TestDriven.NET 3.4.2808的Windows 8(32位)上运行Visual Studio 2012时遇到类似问题,假设您正在运行类似于以上我的,我能够通过执行以下操作来解决这种情况:

  1. 关闭Visual Studio的
  2. 卸载ReSharper的和TD.Net的所有副本
  3. 首先重新安装加利奥和ReSharper的
  4. 安装最新的TestDriv EN(在我的情况下3.4.2808个人)
  5. 启动Visual Studio并右键单击运行测试。
相关问题