示例#1
0
		public override void BeginRun( EventListener listener, ITestFilter filter )
		{
			NTrace.Debug( "Running test asynchronously" );
			QueuingEventListener queue = new QueuingEventListener();

			StartTextCapture( queue );

			EventPump pump = new EventPump( listener, queue.Events, true);
			pump.Start(); // Will run till RunFinished is received
			// TODO: Make sure the thread is cleaned up if we abort the run
		
			base.BeginRun( queue, filter );
		}
示例#2
0
		public override TestResult Run( EventListener listener, ITestFilter filter )
		{
			NTrace.Debug( "Running test synchronously" );
			QueuingEventListener queue = new QueuingEventListener();

			StartTextCapture( queue );

			using( EventPump pump = new EventPump( listener, queue.Events, true ) )
			{
				pump.Start();
				return base.Run( queue, filter );
			}
		}
示例#3
0
        public override void BeginRun( EventListener listener, ITestFilter filter )
        {
            if ( useThreadedRunner )
            {
                QueuingEventListener queue = new QueuingEventListener();

                DirectOutputToListener( queue );

                EventPump pump = new EventPump( listener, queue.Events, true);
                pump.Start(); // Will run till RunFinished is received
                // TODO: Make sure the thread is cleaned up if we abort the run

                base.BeginRun( queue, filter );
            }
            else
            {
                DirectOutputToListener( listener );
                base.BeginRun( listener, filter );
            }
        }
示例#4
0
        public override TestResult Run( EventListener listener, ITestFilter filter )
        {
            if ( useThreadedRunner )
            {
                QueuingEventListener queue = new QueuingEventListener();

                DirectOutputToListener( queue );

                using( EventPump pump = new EventPump( listener, queue.Events, true ) )
                {
                    pump.Start();
                    return base.Run( queue, filter );
                }
            }
            else
            {
                DirectOutputToListener( listener );
                return base.Run( listener, filter );
            }
        }
		public override TestResult Run( EventListener listener, ITestFilter filter, bool tracing, LoggingThreshold logLevel )
		{
            log.Debug("Run");

            QueuingEventListener queue = new QueuingEventListener();

			StartTextCapture( queue, tracing, logLevel );

			using( EventPump pump = new EventPump( listener, queue.Events, true ) )
			{
				pump.Start();
				return base.Run( queue, filter, tracing, logLevel );
			}
		}
		public override void BeginRun( EventListener listener, ITestFilter filter, bool tracing, LoggingThreshold logLevel )
		{
            log.Debug("BeginRun");

			QueuingEventListener queue = new QueuingEventListener();

			StartTextCapture( queue, tracing, logLevel );

			EventPump pump = new EventPump( listener, queue.Events, true);
			pump.Start(); // Will run till RunFinished is received
			// TODO: Make sure the thread is cleaned up if we abort the run
		
			base.BeginRun( queue, filter, tracing, logLevel );
		}