testmark-go

strictexercise.md

testexec strict file🔗

Shows examples of poorly formed testexec files. These will be skipped if strict mode is disabled.


A hunk with an empty intermediate step will not execute.

  # no-op
  # no-op, this will not be reached because it missing executable blocks in parent steps

Recursion won't happen if child blocks don't begin with then- Any unrecognized pattern will be an error in strict mode.

  # no-op
  # no-op, this script will not run because the subdirectory does not begin with "then-"

Blocks can't contain both a script and a sequence child

  # no-op, this script will not run because it has both types of exec blocks
  # no-op, this script will not run because it has both types of exec blocks

testexec/strictexercise.md · 1.0 KiB · 59d311ae52