Exemplo n.º 1
0
        protected virtual void RunTests(IEnumerable <TestDetails> tests, IDebugAttacher debuggerAttacher)
        {
            if (_outputWriter != null)
            {
                _outputWriter.ClearOutput();
            }

            var testAssemblies = tests.Select(t => t.Class.Assembly).Distinct();

            foreach (var assembly in testAssemblies)
            {
                var runnerPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FieldTest.Runner.exe";
                _configManager.CopyApplicationConfiguration(string.Format("{0}.config", assembly.AssemblyPath), string.Format("{0}.config", runnerPath));

                _testExecutor.RunTests(tests, assembly, runnerPath, debuggerAttacher);
            }
        }