markSkipped function

void markSkipped(
  1. TestContext? ctx,
  2. String? reason
)

Shapes a Skipped result (plugin tier): the reason becomes the result comment, recorded steps are dropped and result-level fail text is cleared.

A Skipped result reports no steps and no errorMessage on every language.

Implementation

void markSkipped(TestContext? ctx, String? reason) {
  if (ctx == null) return;
  recordSkip(ctx, reason);
  ctx._resultError = '';
  ctx._clearStepTrees();
}