Example #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 );
		}
Example #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));
            }
        }
Example #3
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 );
			}
		}
        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));
            }
        }
Example #5
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);
        }
        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);
        }
Example #7
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 );
            }
        }
Example #8
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);
            }
        }
Example #9
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));
            }
        }
Example #10
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 );
		}