Ошибка запуска теста MBUnit из Visual Studio с использованием TestDriven.Net

Я получаю следующую ошибку при попытке выполнить модульный тест из Visual Studio. Я немного поковырялся и переустановил Gallio и TD.Net, но все равно получаю ту же ошибку. Я не знаю, с чего начать, и поиск в Google почти ничего не дает...

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.

0 пройдено, 1 не пройдено, 0 пропущено, заняло 4,01 секунды (MbUnit v3.3).

Недавно я столкнулся с аналогичной проблемой при запуске Visual Studio 2012 в Windows 8 (32-разрядная версия) с установленными JetBrains ReSharper 7.1.10000.900, GallioBundle 3.4.14.0 и TestDriven.NET 3.4.2808, при условии, что вы используете настройку, аналогичную приведенной выше, Я смог разрешить эту ситуацию, выполнив следующие действия:


person Marty    schedule 17.05.2012    source источник


Ответы (1)


Завершите работу всех копий Visual Studio

  1. Удалите ReSharper и TD.Net
  2. Сначала переустановите Gallio и ReSharper.
  3. Установите последнюю версию TestDriven (в моем случае 3.4.2808 Personal)
  4. Запустите Visual Studio и щелкните правой кнопкой мыши, чтобы запустить тесты.
  5. в Gallio.Runtime.Extensibility.PluginCatalog.RegisterComponents(реестр IRegistry, IList_2_1 pluginDescriptors) в c:\Server\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Runtime\Extensibility\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 в Gallio.Runtime.DefaultRuntime.Initialize() в c:\Server\Projects\ MbUnit v3.3\Work\src\Gallio\Gallio\Runtime\DefaultRuntime.cs:line 170 --- Конец внутренней трассировки стека исключений --- в Gallio.Runtime.DefaultRuntime.Initialize() в c:\Server\Projects \MbUnit v3.3\Work\src\Gallio\Gallio\Runtime\DefaultRuntime.cs:строка 197 в Gallio.Runtime.RuntimeBootstrap.Initialize(настройка RuntimeSetup, регистратор ILogger) в c:\Server\Projects\MbUnit v3.3\ Вт ork\src\Gallio\Gallio\Runtime\RuntimeBootstrap.cs:строка 74 в Gallio.Runtime.Loader.GallioLoaderBootstrap.SetupRuntime(String runtimePath) в c:\Server\Projects\MbUnit v3.3\Work\src\Gallio\Gallio \Runtime\Loader\GallioLoaderBootstrap.cs:строка 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 a ssemblyPath, 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_3_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, регистратор ILogger) в 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.S haredEnvironment.SharedEnvironmentManager.CreateSharedEnvironment() at Gallio.Loader.SharedEnvironment.SharedEnvironmentManager.GetSharedEnvironment() at Gallio.TDNetRunner.Core.LocalProxyTestRunner.CreateRemoteProxyTestRunner() at Gallio.TDNetRunner.Core.LocalProxyTestRunner.RunImpl(IFacadeTestListener testListener, String assemblyPath, String cref . в Gallio.TDNetRunner.GallioResidentTestRunner.Run(ITestListener testListener, String AssemblyFile, String cref) в TestDriven.TestRunner.AdaptorTestRunner.Run(ITestListener testListener, ITraceListener traceListener, String AssemblyPath, String testPath) в TestDriven.TestRunner.ThreadTes tRunner.Runner.Run()
person chridam    schedule 09.01.2013