skip method

Subject<T> skip(
  1. String message
)

Mark the currently running test as skipped and return a Subject that will ignore all expectations.

Any expectations against the return value will not be checked and will not be included in the "Expected" or "Actual" string representations of a failure.

check(actual)
    ..stillChecked()
    ..skip('reason the expectation is temporarily not met').notChecked();

If skip is used in a callback passed to softCheck or describe it will still mark the test as skipped, even though failing the expectation would not have otherwise caused the test to fail.

Implementation

Subject<T> skip(String message) {
  TestHandle.current.markSkipped(message);
  return Subject._(_SkippedContext());
}