我在尝试从 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.
在 Gallio.Runtime.Extensibility.PluginCatalog.RegisterComponents(IRegistry 注册表,IList1 topologicallySortedPlugins, IList
GetSharedEnvironment() at Gallio.TDNetRunner.Core.LocalProxyTestRunner.CreateRemoteProxyTestRunner() at Gallio.TDNetRunner.Core.LocalProxyTestRunner.RunImpl(IFacadeTestListener testListener, String assemblyPath, String cref, FacadeOptions facadeOptions) at 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:无法注册插件“Gallio.TDNetRunner.UI”的组件“TDNetRunner.UI.PlaceholderPreferencePaneProvider”,因为它实现了服务“Gallio.UI。在注册表中找不到的 PreferencePaneProvider'。在 Gallio.Runtime.Extensibility.PluginCatalog.RegisterComponents(IRegistry 注册表,IList1 topologicallySortedPlugins, IList
1 pluginDescriptors) at Gallio.Runtime.Extensibility.PluginCatalog.ApplyTo(IRegistry registry) at Gallio.Runtime.DefaultRuntime.RegisterLoadedPlugins() at Gallio.Runtime.DefaultRuntime.Initialize() --- 内部异常堆栈跟踪结束 --- 在Gallio.Runtime.DefaultRuntime.Initialize() at Gallio.Runtime.RuntimeBootstrap.Initialize(RuntimeSetup setup, ILogger logger) at 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 .Gallio.Loader.SharedEnvironment.SharedEnvironmentManager.CreateSharedEnvironment() 上 Gallio.Loader.SharedEnvironment.SharedEnvironmentManager.GetSharedEnvironment() Gallio.TDNetRunner.Core.LocalProxyTestRunner.CreateRemoteProxyTestRunner() Gallio.TDNetRunner.Core.LocalProxyTestRunner() 上的 IsolatedEnvironment.SetupRuntime()。 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 , 字符串 assemblyPath, 字符串 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)。