public override void AssemblyFinished(TestAssembly testAssembly, int total, int failed, int skipped, double time) { TotalTests = total; TotalFailures = failed; TotalSkips = skipped; TotalTime = time; }
public void ParentAssemblyStart(TestAssembly testAssembly) { Start = DateTime.Now; Console.WriteLine( "##teamcity[testSuiteStarted name='{0}']", Escape(Path.GetFileName(testAssembly.AssemblyFilename)) ); }
public virtual void AssemblyFinished(TestAssembly testAssembly, int total, int failed, int skipped, double time) { TotalTests = total; TotalFailures = failed; TotalSkips = skipped; TotalTime = time; Console.WriteLine("{0} total, {1} failed, {2} skipped, took {3} seconds", total, failed, skipped, time.ToString("0.000", CultureInfo.InvariantCulture)); }
public void AssemblyFinished(TestAssembly testAssembly, int total, int failed, int skipped, double time) { Application.Current.Dispatcher.BeginInvoke((Action)(() => { _viewModel.PassedTests = total - failed - skipped; _viewModel.FailedTests = failed; _viewModel.SkippedTests = skipped; _viewModel.TimeElapsed = time; })); }
public void ParentAssemblyFinished(TestAssembly testAssembly, int total, int failed, int skipped) { End = DateTime.Now; var elapsed = End - Start; var time = elapsed.TotalSeconds; if (!_isSilent) Console.Write("\r"); Console.WriteLine("{0} total, {1} failed, {2} skipped, took {3} seconds", total, failed, skipped, time.ToString("0.000", CultureInfo.InvariantCulture)); }
public void ParentAssemblyFinished(TestAssembly testAssembly, int total, int failed, int skipped) { End = DateTime.Now; var elapsed = End - Start; AssemblyFinished(testAssembly, total, failed, skipped, elapsed.TotalSeconds); Console.WriteLine( "##teamcity[testSuiteFinished name='{0}']", Escape(Path.GetFileName(testAssembly.AssemblyFilename)) ); }
public void AssemblyFinished(TestAssembly testAssembly, int total, int failed, int skipped, double time) { Console.WriteLine(testAssembly.AssemblyFilename + " Total: " + total + " Failed: " + failed + " Skipped: " + skipped + " in " + time); FailedCount = failed; }
public void ExceptionThrown(TestAssembly testAssembly, Exception exception) { innerCallback.ExceptionThrown(testAssembly, exception); }
public override void AssemblyStart(TestAssembly testAssembly) { }
public void AssemblyStart(TestAssembly testAssembly) { throw new NotImplementedException(); }
public void AssemblyStart(TestAssembly testAssembly) { }
[Fact] // Issue #4853 public void Collection_nav_props_remain_fixed_up_after_DetectChanges() { using (var db = new Context4853()) { var assembly = new TestAssembly { Name = "Assembly1" }; db.Classes.Add(new TestClass { Assembly = assembly, Name = "Class1" }); db.Classes.Add(new TestClass { Assembly = assembly, Name = "Class2" }); db.SaveChanges(); } using (var db = new Context4853()) { var assembly = db.Classes.Include(c => c.Assembly).ToList().First().Assembly; Assert.Equal(2, assembly.Classes.Count); db.ChangeTracker.DetectChanges(); Assert.Equal(2, assembly.Classes.Count); } }
public void DoExceptionThrown(TestAssembly testAssembly, Exception exception) { var testResultViewModel = new TestResultViewModel { Status = ResultStatus.Failed, Name = "Test Runner Error", StackTrace = exception.StackTrace, ResultOutput = exception.Message, Browser = "Unknown", }; AddResult("Test Failure", testResultViewModel); }
public void ExceptionThrown(TestAssembly testAssembly, Exception exception) { innerCallback.ExceptionThrown(testAssembly, exception); }
public void AssemblyStart(TestAssembly testAssembly) { throw new NotImplementedException(); }
public void AssemblyFinished(TestAssembly testAssembly, int total, int failed, int skipped, double time) { throw new NotImplementedException(); }
public void ParentAssemblyStart(TestAssembly testAssembly) { Start = DateTime.Now; }
public void AssemblyStart(TestAssembly testAssembly) { Console.WriteLine("Starting: " + testAssembly); }
public void ExceptionThrown(TestAssembly testAssembly, Exception exception) { Console.WriteLine(exception); }
/// <summary> /// Unloads the specified assembly. /// </summary> /// <param name="assembly">The assembly to unload.</param> public void Unload(TestAssembly assembly) { Guard.ArgumentNotNull("assembly", assembly); Guard.ArgumentValid("assembly", "Assembly not loaded in this environment", TestAssemblies.Contains(assembly)); TestAssemblies.Remove(assembly); assembly.Dispose(); }
public void ExceptionThrown(TestAssembly testAssembly, System.Exception exception) { Application.Current.Dispatcher.BeginInvoke((Action)(() => DoExceptionThrown(testAssembly, exception))); }
public virtual void AssemblyStart(TestAssembly testAssembly) { }
public void AssemblyFinished(TestAssembly testAssembly, int total, int failed, int skipped, double time) { }
public virtual void ExceptionThrown(TestAssembly testAssembly, Exception exception) { Console.WriteLine(); Console.WriteLine("CATASTROPHIC ERROR OCCURRED:"); Console.WriteLine(exception.ToString()); Console.WriteLine("WHILE RUNNING:"); Console.WriteLine(testAssembly.AssemblyFilename); Console.WriteLine(); }
public void ExceptionThrown(TestAssembly testAssembly, Exception exception) { }
public void AssemblyFinished(TestAssembly testAssembly, int total, int failed, int skipped, double time) { throw new NotImplementedException(); }