public int RunTests(string source, ICrossDomainLogger sink, IEnumerable<string> tests) { var testsToRun = new HashSet<string>(tests); var session = new TestSession(new CrossDomainSessionLoggerAdapter(sink)) { ShouldSkipTest = test => !testsToRun.Contains(test.Name), }; return RunSession(source, sink, session); }
public int DiscoverTests(string source, ICrossDomainLogger sink) { var dryRun = new DryRunTestExecutor(); var session = new TestSession(new CrossDomainSessionLoggerAdapter(sink)) { GetTestExecutor = _ => dryRun, }; return RunSession(source, sink, session); }
private int RunSession(string source, ICrossDomainLogger sink, TestSession session) { runner.RunTests(session, CrossDomainConeRunner.LoadTestAssemblies(new[] {source}, sink.Error)); return 0; }