public void RunTests(IEnumerable <TestCase> tests, IRunContext runContext, IFrameworkHandle frameworkHandle)
        {
            this.Cancel();

            this.worker = new TestExecutorWorker(runContext, frameworkHandle);
            this.worker.RunTests(tests);
        }
        public void RunTests(IEnumerable <string> sources, IRunContext runContext, IFrameworkHandle frameworkHandle)
        {
            AssemblyResolver.SetupHandler();

            this.Cancel();
            this.worker = new TestExecutorWorker(runContext, frameworkHandle);
            this.worker.RunTests(sources, new JavaScriptTestDiscoverer());
        }
        public void RunTests(IEnumerable <string> sources, IRunContext runContext, IFrameworkHandle frameworkHandle)
        {
            // If we have a source file specified in the runContext we should use that, otherwise sources should've been set.
            // This happens in the case of .NET Core where the source is the output dll for the project,
            // so we set the projectfile for the current project in the props file we import.

            var settings = new UnitTestSettings(runContext.RunSettings, runContext.IsBeingDebugged);

            var source = settings.TestSource;

            if (!string.IsNullOrEmpty(source))
            {
                sources = new[] { source };
            }

            this.Cancel();
            this.worker = new TestExecutorWorker(runContext, frameworkHandle);
            this.worker.RunTests(sources, new NetCoreTestDiscoverer());
        }