Exemplo n.º 1
0
        public void ReloadTests()
        {
            _events.FireTestsReloading();

            ReloadAllTests();

            _events.FireTestReloaded(Tests);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }