NAME

  [1mtdda tag [22mâ tag tests that failed in the last reference test run

SYNOPSIS

  [1mtdda tag[0m

DESCRIPTION

  The [1mtdda tag [22mcommand reads the log of failing tests written by the
  most recent logged [1mtdda.referencetest [22mrun and adds [1m@tag [22mdecorators
  to those tests in their source files. Tagged tests can then be run in
  isolation, allowing a rapid edit‐test cycle focused on failing
  tests. A logged run of [1mtdda.referencetest [22muses [1m‐‐log‐failures [22mor
  (for unittest‐style tests only) [1m‐F[22m.

WORKFLOW

  A typical workflow with [1munittest[22m‐style tests ([1mReferenceTestCase[22m) is:

  [1mpython tests.py ‐9      # Remove any existing @tag decorators[0m
  [1mpython tests.py ‐F      # Run tests, logging failures[0m
  [1mtdda tag                # Add @tag to failing tests[0m
  [1mpython tests.py ‐1      # Run only tagged (failing) tests[0m

  When all tests are passing:

  [1mpython tests.py ‐9      # Remove @tag decorators[0m

  The equivalent workflow with [1mpytest [22mis:

  [1mpytest ‐‐untag          # Remove any existing @tag decorators[0m
  [1mpytest ‐‐log‐failures   # Run tests, logging failures[0m
  [1mtdda tag                # Add @tag to failing tests[0m
  [1mpytest ‐‐tagged         # Run only tagged (failing) tests[0m

  When all tests are passing:

  [1mpytest ‐‐untag          # Remove @tag decorators[0m

SEE ALSO

  [1mtdda[0m






















