beads/cmd/bd/testdata/dep_errors.txt
beads/crew/lizzy 10b1af3f9b test: add error case and missing command script tests (dolt-test-evu)
Add 12 new script tests covering error cases for existing commands
(create, update, show, close, dep, delete) and missing command
coverage (comments, label, search, config, lint, delete). All new
tests pass; 6 pre-existing script test failures remain unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 18:47:41 -08:00

19 lines
530 B
Text

# Test bd dep error cases
bd init --prefix test
bd create 'First issue'
cp stdout first.txt
exec sh -c 'grep -oE "test-[a-z0-9]+" first.txt > first_id.txt'
# Add dependency with nonexistent blocker should fail
! exec sh -c 'bd dep add $(cat first_id.txt) nonexistent-id'
stderr 'no issue found'
# Add self-dependency should fail
! exec sh -c 'bd dep add $(cat first_id.txt) $(cat first_id.txt)'
stderr 'cannot depend on itself'
# dep tree on nonexistent issue should fail
! bd dep tree nonexistent-id
stderr 'no issue found'