protected override bool Visit(ITestCollectionCleanupFailure testCollectionCleanupFailure) { // TODO: What causes this to be called? // TODO: Add a collection node? var methodMessage = string.Format("Collection cleanup failed in {0}", testCollectionCleanupFailure.TestCollection.DisplayName); HandleFailure(testCollectionCleanupFailure, testCollectionCleanupFailure.TestCases, methodMessage); return(context.ShouldContinue); }
_TestCollectionCleanupFailure AdaptTestCollectionCleanupFailure(ITestCollectionCleanupFailure message) { var testCollectionUniqueID = UniqueIDForTestCollection(assemblyUniqueID, message.TestCollection); return(new _TestCollectionCleanupFailure { AssemblyUniqueID = assemblyUniqueID, ExceptionParentIndices = message.ExceptionParentIndices, ExceptionTypes = message.ExceptionTypes, Messages = message.Messages, StackTraces = message.StackTraces, TestCollectionUniqueID = testCollectionUniqueID }); }
protected override bool Visit(ITestCollectionCleanupFailure cleanupFailure) { logger.LogImportantMessage(cleanupFailure.ToJson()); return base.Visit(cleanupFailure); }
public static string ToJson(this ITestCollectionCleanupFailure testCollectionCleanupFailure) { var json = initObject("testCollectionCleanupFailure", testCollectionCleanupFailure, typeof(ITestCollectionCleanupFailure)); return(ToJson(json)); }
protected override bool Visit(ITestCollectionCleanupFailure cleanupFailure) { AddError("test-collection-cleanup", cleanupFailure.TestCollection.DisplayName, cleanupFailure); return(base.Visit(cleanupFailure)); }
protected override bool Visit(ITestCollectionCleanupFailure cleanupFailure) { ReportError(String.Format("Test Collection Cleanup Failure ({0})", cleanupFailure.TestCollection.DisplayName), cleanupFailure); return(base.Visit(cleanupFailure)); }
/// <inheritdoc/> protected override bool Visit(ITestCollectionCleanupFailure cleanupFailure) { LogError($"Test Collection Cleanup Failure ({cleanupFailure.TestCollection.DisplayName})", cleanupFailure); return(base.Visit(cleanupFailure)); }
protected override bool Visit(ITestCollectionCleanupFailure cleanupFailure) { return(WriteError(String.Format("Test Collection Cleanup Failure ({0})", cleanupFailure.TestCollection.DisplayName), cleanupFailure, cleanupFailure.TestCases)); }
protected override bool Visit(ITestCollectionCleanupFailure cleanupFailure) { WriteError(string.Format("Test Collection Cleanup Failure ({0})", cleanupFailure.TestCollection.DisplayName), cleanupFailure); return base.Visit(cleanupFailure); }
/// <summary> /// Called when an instance of <see cref="ITestCollectionCleanupFailure"/> is sent to the message sink. /// </summary> /// <param name="cleanupFailure">The message.</param> /// <returns>Return <c>true</c> to continue executing tests; <c>false</c> otherwise.</returns> protected virtual bool Visit(ITestCollectionCleanupFailure cleanupFailure) { return(true); }
/// <inheritdoc/> protected override bool Visit(ITestCollectionCleanupFailure cleanupFailure) { LogError($"Test Collection Cleanup Failure ({cleanupFailure.TestCollection.DisplayName})", cleanupFailure); return base.Visit(cleanupFailure); }
protected override bool Visit(ITestCollectionCleanupFailure cleanupFailure) { logger.LogImportantMessage(cleanupFailure.ToJson()); return(base.Visit(cleanupFailure)); }
protected override bool Visit(ITestCollectionCleanupFailure cleanupFailure) { ExecutionSummary.Errors++; return(WriteError($"Test Collection Cleanup Failure ({cleanupFailure.TestCollection.DisplayName})", cleanupFailure, cleanupFailure.TestCases)); }