public void OnAssemblyStart(AssemblyInfo assembly)
 {
   _currentAssemblyName = assembly.Name;
   WriteLineVerbose("");
   WriteLineVerbose("Specs in " + _currentAssemblyName + ":");
   WriteLineVerbose("");
 }
Exemplo n.º 2
0
 public void OnAssemblyStart(AssemblyInfo assembly)
 {
     _currentAssemblyName = assembly.Name;
       _console.WriteLine("");
       _console.WriteLine("Specs in " + _currentAssemblyName + ":");
       _console.WriteLine("");
 }
        protected override void Before_each_spec()
        {
            _messageProvider = Mocks.StrictMock<ITeamCityMessageProvider>();
            _sut = new TeamCityRunListener(_messageProvider);

            _assemblyInfo = new AssemblyInfo("Assembly");
        }
 public CollectReportingInformationRunListener()
 {
   _currentAssembly = null;
   _currentContext = null;
   _contextsByAssembly = new Dictionary<AssemblyInfo, List<ContextInfo>>();
   _specificationsByContext = new Dictionary<ContextInfo, List<SpecificationInfo>>();
   _resultsBySpecification = new Dictionary<SpecificationInfo, Result>();
 }
 public void OnAssemblyEnd(AssemblyInfo assembly)
 {
   if (!string.IsNullOrEmpty(_currentNamespace))
   {
     _writer.WriteTestSuiteFinished(_currentNamespace);
   }
   _writer.WriteProgressFinish("Running specifications in " + assembly.Name);
 }
        protected override void Before_each_spec()
        {
            _assemblyInfo = new AssemblyInfo("Assembly");

            PropertyDictionary propertyDictionary = Mocks.Stub<PropertyDictionary>((Project) null);

            _task = Mocks.StrictMock<Task>();
            SetupResult.For(_task.Properties).Return(propertyDictionary);

            Mocks.Replay(_task);

            _sut = new NAntRunListener(_task);
        }
        public void OnAssemblyEnd(AssemblyInfo assemblyInfo)
        {
            var root = new XElement("listener", new XElement("onassemblyend", assemblyInfo.ToXml()));

            SendMessage(root);
        }
 public void OnAssemblyEnd(AssemblyInfo assembly)
 {
   LastAssembly = assembly;
 }
    public void OnAssemblyEnd(AssemblyInfo assembly)
    {
      var concerns = CreateConcerns();

      _assemblies.Add(assembly.ToNode(concerns));
    }
 public void OnAssemblyStart(AssemblyInfo assembly)
 {
   _concernsToContexts = new Dictionary<string, List<Context>>();
 }
 public void OnAssemblyStart(AssemblyInfo assembly)
 {
     _assemblyTimer.Restart();
 }
 public void OnAssemblyStart(AssemblyInfo assembly)
 {
   _writer.WriteProgressStart("Running specifications in " + assembly.Name);
 }
 public void OnAssemblyStart(AssemblyInfo assembly)
 {
   _listeners.Each(listener => listener.OnAssemblyStart(assembly));
 }
 public void OnAssemblyStart(AssemblyInfo assembly)
 {
     _messageProvider.TestSuiteStarted(assembly.Name);
 }
 public void OnAssemblyEnd(AssemblyInfo assembly)
 {
     _messageProvider.TestSuiteFinished(assembly.Name);
 }
 public void OnAssemblyEnd(AssemblyInfo assembly)
 {
     var notify = CreateTaskNotificationFor(assembly, _runAssemblyTask);
       NotifyRedirectedOutput(notify, assembly);
 }
 public virtual void OnAssemblyStart(AssemblyInfo assembly)
 {
   _currentAssemblyName = assembly.Name;
   _contextsByAssembly.Add(_currentAssemblyName, new List<ContextInfo>());
 }
        public long GetAssemblyTime(AssemblyInfo assemblyInfo)
        {
            if (_assemblyTimes.ContainsKey(assemblyInfo))
            {
                return _assemblyTimes[assemblyInfo];
            }

            return -1;
        }
 public void OnAssemblyEnd(AssemblyInfo assembly)
 {
     _assemblyTimer.Stop();
     _assemblyTimes[assembly] = _assemblyTimer.ElapsedMilliseconds;
 }
 public void OnAssemblyEnd(AssemblyInfo assembly)
 {
     runListener.OnAssemblyEnd(assembly);
 }
 public void OnAssemblyStart(AssemblyInfo assembly)
 {
     runListener.OnAssemblyStart(assembly);
 }
 public void OnAssemblyStart(AssemblyInfo assembly)
 {
 }
 public void OnAssemblyEnd(AssemblyInfo assembly)
 {
   _listeners.Reverse().Each(listener => listener.OnAssemblyEnd(assembly));
 }
 public void OnAssemblyEnd(AssemblyInfo assembly)
 {
 }
        public void OnAssemblyEnd(AssemblyInfo assemblyInfo)
        {
            var root = new XElement("listener", new XElement("onassemblyend", assemblyInfo.ToXml()));

            this._listener.SyncProcessMessage(new RemoteListenerMessage(root));
        }
 public virtual void OnAssemblyEnd(AssemblyInfo assembly)
 {
 }
 public void OnAssemblyStart(AssemblyInfo assembly)
 {
   _server.TaskStarting(_runAssemblyTask);
 }
Exemplo n.º 28
0
 public void AssemblyStart(AssemblyInfo assembly)
 {
   EmptyLine();
   _console.WriteLine("Specs in " + assembly.Name + ":");
 }
    TestResult RunAssembly(MachineAssemblyTest assemblyTest, ITestCommand command, TestStep parentTestStep)
    {
      ITestContext assemblyContext = command.StartPrimaryChildStep(parentTestStep);

      AssemblyInfo assemblyInfo = new AssemblyInfo(assemblyTest.Name, assemblyTest.AssemblyFilePath);
      TestOutcome outcome = TestOutcome.Passed;

      _listener.OnAssemblyStart(assemblyInfo);
      assemblyTest.AssemblyContexts.Each(context => context.OnAssemblyStart());
      
      foreach (ITestCommand contextCommand in command.Children)
      {
        MachineContextTest contextTest = contextCommand.Test as MachineContextTest;
        if (contextTest == null) 
          continue;

        var contextResult = RunContextTest( assemblyTest, contextTest, contextCommand, assemblyContext.TestStep);
        outcome = outcome.CombineWith(contextResult.Outcome);
        assemblyContext.SetInterimOutcome(outcome);
      }

      assemblyTest.AssemblyContexts.Reverse().Each(context => context.OnAssemblyComplete());
      _listener.OnAssemblyEnd(assemblyInfo);

      return assemblyContext.FinishStep( outcome, null);
    }
Exemplo n.º 30
0
 public void AssemblyEnd(AssemblyInfo assembly)
 {
   EmptyLine();
 }