Ejemplo n.º 1
0
 public TestExecutorStartedEventArgs(LighthouseUnitTestRunStartInformation info)
 {
     TestRunStartedInformation = info;
 }
Ejemplo n.º 2
0
 private void OnStarted(LighthouseUnitTestRunStartInformation info)
 {
     var handler = Started;
     if (handler != null)
     {
         handler(this, new TestExecutorStartedEventArgs(info));
     }
 }
Ejemplo n.º 3
0
 public TestsExecutionStartedEventArgs(LighthouseUnitTestRunStartInformation testRunStartedEventArgs)
 {
     TestRunStartInformation = testRunStartedEventArgs;
 }
Ejemplo n.º 4
0
        public void TestsStarted(string serializedLighthouseUnitTestRunStartedEventArgs)
        {
            var convertedInformation = new LighthouseUnitTestRunStartInformation();
            try
            {
                convertedInformation = _serializationService.Deserialize<LighthouseUnitTestRunStartInformation>(serializedLighthouseUnitTestRunStartedEventArgs);
            }
            catch (Exception exc)
            {
                OnErrorOccured("Error while deserializing data for TestsStarted: " + exc.Message);
            }

            OnStarted(convertedInformation);
        }
        public void OnTestRunStarting(object sender, TestRunStartingEventArgs testRunStartingEventArgs)
        {
            var args = new LighthouseUnitTestRunStartInformation()
                           {
                               TotalNumberOfAssemblies = testRunStartingEventArgs.EnqueuedAssemblies,
                               TotalNumberOfMethods = testRunStartingEventArgs.Settings.TestHarness.TestMethodCount
                           };

            var serializedResult = _serializationService.Serialize(args);

            InvokeExternalMethod("TestsStarted", serializedResult);
        }
        private void OnStarted(object sender, TestExecutorStartedEventArgs e)
        {
            _logger.Log(string.Format("Lighthouse v{0} (c) 2011 - Remote Unit Test Run Started.",  Constants.Versions.ConsoleRunnerVersionText));
            _logger.Log(string.Format("Total Test Assemblies: {0} Total Test Methods: {1}.",
                                      e.TestRunStartedInformation.TotalNumberOfAssemblies,
                                      e.TestRunStartedInformation.TotalNumberOfMethods));

            TestRunInformation = e.TestRunStartedInformation;
        }