public void ReloadTests() { _events.FireTestsReloading(); ReloadAllTests(); _events.FireTestReloaded(Tests); }
public void ReloadTests() { Tests = new TestNode(Runner.Explore(TestFilter.Empty)); AvailableCategories = GetAvailableCategories(); if (Services.UserSettings.Gui.ClearResultsOnReload) { Results.Clear(); } _events.FireTestReloaded(Tests); }
public void ReloadTests() { Runner.Unload(); Results.Clear(); Tests = null; _package = MakeTestPackage(_files); Runner = _testEngine.GetRunner(_package); Tests = new TestNode(Runner.Explore(TestFilter.Empty)); Results.Clear(); _events.FireTestReloaded(Tests); }
public void ReloadTests() { _events.FireTestsReloading(); Runner.Reload(); _lastRunWasDebugRun = false; TestPackage = MakeTestPackage(TestFiles); //Tests = ExploreTestPackage(TestPackage); AvailableCategories = GetAvailableCategories(); if (Services.UserSettings.Gui.ClearResultsOnReload) { Results.Clear(); } _events.FireTestReloaded(Tests); }
public void ReloadTests() { _events.FireTestsReloading(); // NOTE: The `ITestRunner.Reload` method supported by the engine // has some problems, so we simulate Unload+Load. See issue #328. // Replace Runner in case settings changed Runner.Unload(); Runner.Dispose(); Runner = TestEngine.GetRunner(TestPackage); // Discover tests Tests = new TestNode(Runner.Explore(TestFilter.Empty)); AvailableCategories = GetAvailableCategories(); Results.Clear(); _events.FireTestReloaded(Tests); }
public void ReloadTests() { _events.FireTestsReloading(); Runner.Unload(); Results.Clear(); Tests = null; TestPackage = MakeTestPackage(TestFiles); Tests = new TestNode(Runner.Explore(TestFilter.Empty)); AvailableCategories = GetAvailableCategories(); if (Services.UserSettings.Gui.ClearResultsOnReload) { Results.Clear(); } _events.FireTestReloaded(Tests); }