version: "3"

# ============================================================================
# Test fixture generation
#
# Generates DOCX / ODT / XLSX / PPTX / PDF documents with track-changes,
# revisions, comments, incremental updates, paired diff inputs, and
# security edge cases — each paired with a *.gt.json ground-truth sidecar.
#
# Source: tools/generate_test_fixtures/
# Output: test_documents/generated/<format>/
#
# Usage:
#   task fixtures:generate            # produce every fixture
#   task fixtures:generate -- docx    # produce a single category
#   task fixtures:test                # run the toolkit's smoke test
# ============================================================================

tasks:
  generate:
    desc: "Generate all (or selected) test fixtures + ground-truth sidecars"
    dir: tools/generate_test_fixtures
    cmds:
      - uv run python -m generate_test_fixtures {{.CLI_ARGS | default "all"}}

  test:
    desc: "Run the fixture generator's smoke test suite"
    dir: tools/generate_test_fixtures
    cmds:
      - uv run pytest -q
