protected override bool Visit(ITestCollectionFinished testCollectionFinished)
        {
            logger.LogImportantMessage("##teamcity[testSuiteFinished name='{0}' flowId='{1}']",
                                       Escape(displayNameFormatter.DisplayName(testCollectionFinished.TestCollection)),
                                       ToFlowId(testCollectionFinished.TestCollection.DisplayName));

            return base.Visit(testCollectionFinished);
        }
        protected override bool Visit(ITestCollectionFinished testCollectionFinished)
        {
            logger.LogImportantMessage("##teamcity[testSuiteFinished name='{0}' flowId='{1}']",
                                       Escape(displayNameFormatter.DisplayName(testCollectionFinished.TestCollection)),
                                       ToFlowId(testCollectionFinished.TestCollection.DisplayName));

            return(base.Visit(testCollectionFinished));
        }
Ejemplo n.º 3
0
        protected override bool Visit(ITestCollectionFinished testCollectionFinished)
        {
            // Base class does computation of results, so call it first.
            var result = base.Visit(testCollectionFinished);

            Log.LogMessage(MessageImportance.High, "##teamcity[testSuiteFinished name='{0}' flowId='{1}']",
                           TeamCityEscape(testCollectionFinished.TestCollection.DisplayName),
                           ToFlowId(testCollectionFinished.TestCollection.DisplayName));

            return result;
        }
Ejemplo n.º 4
0
        protected override bool Visit(ITestCollectionFinished testCollectionFinished)
        {
            // Base class does computation of results, so call it first.
            var result = base.Visit(testCollectionFinished);

            Log.LogMessage(MessageImportance.High, "##teamcity[testSuiteFinished name='{0}' flowId='{1}']",
                           TeamCityEscape(displayNameFormatter.DisplayName(testCollectionFinished.TestCollection)),
                           ToFlowId(testCollectionFinished.TestCollection.DisplayName));

            return(result);
        }
Ejemplo n.º 5
0
        protected override bool Visit(ITestCollectionFinished testCollectionFinished)
        {
            // Base class does computation of results, so call it first.
            var result = base.Visit(testCollectionFinished);

            console.WriteLine("##teamcity[testSuiteFinished name='{0}' flowId='{1}']",
                              TeamCityEscape(displayNameFormatter.DisplayName(testCollectionFinished.TestCollection)),
                              ToFlowId(testCollectionFinished.TestCollection.DisplayName));

            return result;
        }
Ejemplo n.º 6
0
        protected override bool Visit(ITestCollectionFinished testCollectionFinished)
        {
            // Base class does computation of results, so call it first.
            var result = base.Visit(testCollectionFinished);

            Console.WriteLine("##teamcity[testSuiteFinished name='{0}' flowId='{1}']",
                              TeamCityEscape(testCollectionFinished.TestCollection.DisplayName),
                              ToFlowId(testCollectionFinished.TestCollection.DisplayName));

            return(result);
        }
Ejemplo n.º 7
0
        protected override bool Visit(ITestCollectionFinished testCollectionFinished)
        {
            // Base class does computation of results, so call it first.
            var result = base.Visit(testCollectionFinished);

            // to avoid mangling log
            //var displayName = TeamCityEscape(displayNameFormatter.DisplayName(testCollectionFinished.TestCollection));
            //LogMessage(displayName, true, "##teamcity[testSuiteFinished name='{0}' flowId='{1}']",
            //               displayName,
            //               ToFlowId(testCollectionFinished.TestCollection.DisplayName));

            return(result);
        }
        protected override bool Visit(ITestCollectionFinished testCollectionFinished)
        {
            // Base class does computation of results, so call it first.
            var result = base.Visit(testCollectionFinished);

            // to avoid mangling log
            //var displayName = TeamCityEscape(displayNameFormatter.DisplayName(testCollectionFinished.TestCollection));
            //LogMessage(displayName, true, "##teamcity[testSuiteFinished name='{0}' flowId='{1}']",
            //               displayName,
            //               ToFlowId(testCollectionFinished.TestCollection.DisplayName));

            return result;
        }
Ejemplo n.º 9
0
        _TestCollectionFinished AdaptTestCollectionFinished(ITestCollectionFinished message)
        {
            var testCollectionUniqueID = UniqueIDForTestCollection(assemblyUniqueID, message.TestCollection);

            return(new _TestCollectionFinished
            {
                AssemblyUniqueID = assemblyUniqueID,
                ExecutionTime = message.ExecutionTime,
                TestCollectionUniqueID = testCollectionUniqueID,
                TestsFailed = message.TestsFailed,
                TestsRun = message.TestsRun,
                TestsSkipped = message.TestsSkipped
            });
        }
Ejemplo n.º 10
0
        protected override bool Visit(ITestCollectionFinished testCollectionFinished)
        {
            if (_assemblyElement != null)
            {
                var collectionElement = GetTestCollectionElement(testCollectionFinished.TestCollection);
                collectionElement.Add(
                    new XAttribute("total", testCollectionFinished.TestsRun),
                    new XAttribute("passed", testCollectionFinished.TestsRun - testCollectionFinished.TestsFailed - testCollectionFinished.TestsSkipped),
                    new XAttribute("failed", testCollectionFinished.TestsFailed),
                    new XAttribute("skipped", testCollectionFinished.TestsSkipped),
                    new XAttribute("name", XmlEscape(testCollectionFinished.TestCollection.DisplayName)),
                    new XAttribute("time", testCollectionFinished.ExecutionTime.ToString("0.000", CultureInfo.InvariantCulture))
                    );
            }

            return(base.Visit(testCollectionFinished));
        }
Ejemplo n.º 11
0
        protected override bool Visit(ITestCollectionFinished testCollectionFinished)
        {
            logger.LogImportantMessage(testCollectionFinished.ToJson(ToFlowId(testCollectionFinished.TestCollection.DisplayName)));

            return base.Visit(testCollectionFinished);
        }
Ejemplo n.º 12
0
        public static string ToJson(this ITestCollectionFinished testCollectionFinished, string flowId)
        {
            var json = initObject("testCollectionFinished", testCollectionFinished, typeof(ITestCollectionFinished), flowId);

            return(ToJson(json));
        }
Ejemplo n.º 13
0
 /// <summary>
 /// Called when an instance of <see cref="ITestCollectionFinished"/> is sent to the message sink.
 /// </summary>
 /// <param name="testCollectionFinished">The message.</param>
 /// <returns>Return <c>true</c> to continue executing tests; <c>false</c> otherwise.</returns>
 protected virtual bool Visit(ITestCollectionFinished testCollectionFinished)
 {
     return(true);
 }
Ejemplo n.º 14
0
 protected override bool Visit(ITestCollectionFinished testCollectionFinished)
 {
     Calls.Add("ITestCollectionFinished");
     return base.Visit(testCollectionFinished);
 }
Ejemplo n.º 15
0
 protected override bool Visit(ITestCollectionFinished testCollectionFinished)
 {
     Calls.Add("ITestCollectionFinished");
     return(base.Visit(testCollectionFinished));
 }
Ejemplo n.º 16
0
        protected override bool Visit(ITestCollectionFinished testCollectionFinished)
        {
            logger.LogImportantMessage(testCollectionFinished.ToJson(ToFlowId(testCollectionFinished.TestCollection.DisplayName)));

            return(base.Visit(testCollectionFinished));
        }