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))
     );
 }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
 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))
            );
        }
Exemplo n.º 7
0
 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;
 }
Exemplo n.º 8
0
 public void ExceptionThrown(TestAssembly testAssembly, Exception exception)
 {
     innerCallback.ExceptionThrown(testAssembly, exception);
 }
 public override void AssemblyStart(TestAssembly testAssembly)
 {
 }
Exemplo n.º 10
0
 public void AssemblyStart(TestAssembly testAssembly)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 11
0
 public void AssemblyStart(TestAssembly testAssembly)
 {
 }
Exemplo n.º 12
0
        [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);
            }
        }
Exemplo n.º 13
0
        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);
        }
Exemplo n.º 14
0
 public void ExceptionThrown(TestAssembly testAssembly, Exception exception)
 {
     innerCallback.ExceptionThrown(testAssembly, exception);
 }
Exemplo n.º 15
0
 public void AssemblyStart(TestAssembly testAssembly)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 16
0
 public void AssemblyFinished(TestAssembly testAssembly, int total, int failed, int skipped, double time)
 {
     throw new NotImplementedException();
 }
 public void ParentAssemblyStart(TestAssembly testAssembly)
 {
     Start = DateTime.Now;
 }
Exemplo n.º 18
0
 public void AssemblyStart(TestAssembly testAssembly)
 {
     Console.WriteLine("Starting: " + testAssembly);
 }
Exemplo n.º 19
0
 public void ExceptionThrown(TestAssembly testAssembly, Exception exception)
 {
     Console.WriteLine(exception);
 }
Exemplo n.º 20
0
        /// <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();
        }
Exemplo n.º 21
0
 public void ExceptionThrown(TestAssembly testAssembly, System.Exception exception)
 {
     Application.Current.Dispatcher.BeginInvoke((Action)(() => DoExceptionThrown(testAssembly, exception)));
 }
Exemplo n.º 22
0
 public virtual void AssemblyStart(TestAssembly testAssembly)
 {
 }
Exemplo n.º 23
0
 public void AssemblyFinished(TestAssembly testAssembly, int total, int failed, int skipped, double time)
 {
 }
Exemplo n.º 24
0
 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();
 }
Exemplo n.º 25
0
 public void ExceptionThrown(TestAssembly testAssembly, Exception exception)
 {
 }
Exemplo n.º 26
0
 public void AssemblyFinished(TestAssembly testAssembly, int total, int failed, int skipped, double time)
 {
     throw new NotImplementedException();
 }