Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 private int RunSession(string source, ICrossDomainLogger sink, TestSession session)
 {
     runner.RunTests(session, CrossDomainConeRunner.LoadTestAssemblies(new[] {source}, sink.Error));
     return 0;
 }