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)); }
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; }
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); }
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; }
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); }
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; }
_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 }); }
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)); }
protected override bool Visit(ITestCollectionFinished testCollectionFinished) { logger.LogImportantMessage(testCollectionFinished.ToJson(ToFlowId(testCollectionFinished.TestCollection.DisplayName))); return base.Visit(testCollectionFinished); }
public static string ToJson(this ITestCollectionFinished testCollectionFinished, string flowId) { var json = initObject("testCollectionFinished", testCollectionFinished, typeof(ITestCollectionFinished), flowId); return(ToJson(json)); }
/// <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); }
protected override bool Visit(ITestCollectionFinished testCollectionFinished) { Calls.Add("ITestCollectionFinished"); return base.Visit(testCollectionFinished); }
protected override bool Visit(ITestCollectionFinished testCollectionFinished) { Calls.Add("ITestCollectionFinished"); return(base.Visit(testCollectionFinished)); }
protected override bool Visit(ITestCollectionFinished testCollectionFinished) { logger.LogImportantMessage(testCollectionFinished.ToJson(ToFlowId(testCollectionFinished.TestCollection.DisplayName))); return(base.Visit(testCollectionFinished)); }