Exemplo n.º 1
0
        public ITestReporter StartChildTestReporter(StartTestItemRequest request)
        {
            if (request == null)
            {
                throw new ArgumentNullException(nameof(request));
            }

            TraceLogger.Verbose($"Scheduling request to start new '{request.Name}' test item in {GetHashCode()} proxy instance");

            var newTestNode = new TestReporter(_service, _configuration, LaunchReporter, this, _requestExecuter, _extensionManager, _reportEventsSource);

            newTestNode.Start(request);

            lock (_lockObj)
            {
                if (ChildTestReporters == null)
                {
                    lock (_lockObj)
                    {
                        ChildTestReporters = new List <ITestReporter>();
                    }
                }
                ChildTestReporters.Add(newTestNode);
            }

            return(newTestNode);
        }
        public ITestReporter StartChildTestReporter(StartTestItemRequest request)
        {
            var newTestNode = new TestReporter(_service, this, null, request);

            if (ChildTestReporters == null)
            {
                ChildTestReporters = new ConcurrentBag <ITestReporter>();
            }
            ChildTestReporters.Add(newTestNode);

            LastTestNode = newTestNode;

            return(newTestNode);
        }
Exemplo n.º 3
0
        public ITestReporter StartChildTestReporter(StartTestItemRequest request)
        {
            var newTestNode = new TestReporter(_service, LaunchReporter, this);

            newTestNode.Start(request);
            if (ChildTestReporters == null)
            {
                ChildTestReporters = new ConcurrentBag <ITestReporter>();
            }
            ChildTestReporters.Add(newTestNode);

            (LaunchReporter as LaunchReporter).LastTestNode = newTestNode;

            return(newTestNode);
        }
        public ITestReporter StartChildTestReporter(StartTestItemRequest request)
        {
            TraceLogger.Verbose("Scheduling request to start new test item");

            var newTestNode = new TestReporter(_service, LaunchReporter, this, request);

            if (ChildTestReporters == null)
            {
                ChildTestReporters = new ConcurrentBag <ITestReporter>();
            }
            ChildTestReporters.Add(newTestNode);

            (LaunchReporter as LaunchReporter).LastTestNode = newTestNode;

            return(newTestNode);
        }
Exemplo n.º 5
0
        public ITestReporter StartChildTestReporter(StartTestItemRequest request)
        {
            var newTestNode = new TestReporter(_service, _configuration, this, null, _requestExecuter, _extensionManager, _reportEventsSource);

            newTestNode.Start(request);

            lock (_lockObj)
            {
                if (ChildTestReporters == null)
                {
                    lock (_lockObj)
                    {
                        ChildTestReporters = new List <ITestReporter>();
                    }
                }
                ChildTestReporters.Add(newTestNode);
            }

            return(newTestNode);
        }