Class FailureDiagnosticsReporter

java.lang.Object
com.shaft.tools.io.internal.FailureDiagnosticsReporter

public final class FailureDiagnosticsReporter extends Object
Builds the agent-readable failure diagnostics bundle attached to failed tests.
  • Method Details

    • attachOnFailure

      public static void attachOnFailure(TestExecutionInfo info, String logText, List<String> attachments)
      Attaches shaft-diagnostics.zip for failed or broken tests.
      Parameters:
      info - current test metadata
      logText - current test log
      attachments - generated artifact file paths already known to SHAFT