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>
19 lines
415 B
Text
19 lines
415 B
Text
# Test bd create error cases
|
|
|
|
bd init --prefix test
|
|
|
|
# Create with no title should fail
|
|
! bd create
|
|
stderr 'title required'
|
|
|
|
# Create with empty title should fail
|
|
! bd create ''
|
|
stderr 'title is required'
|
|
|
|
# Create with invalid type should fail
|
|
! bd create 'Test' --type invalid-type
|
|
stderr 'invalid issue type'
|
|
|
|
# Create with invalid priority should fail
|
|
! bd create 'Test' --priority 99
|
|
stderr 'invalid priority'
|