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>
26 lines
503 B
Text
26 lines
503 B
Text
# Test bd config command
|
|
|
|
bd init --prefix test
|
|
|
|
# Set a config value
|
|
bd config set jira.url 'https://example.atlassian.net'
|
|
stdout 'Set jira.url'
|
|
|
|
# Get the config value
|
|
bd config get jira.url
|
|
stdout 'https://example.atlassian.net'
|
|
|
|
# List all config
|
|
bd config list
|
|
stdout 'jira.url'
|
|
|
|
# Set another value
|
|
bd config set jira.project 'TEST'
|
|
|
|
# Unset a value
|
|
bd config unset jira.url
|
|
|
|
# Verify it's gone - list should not show the URL
|
|
bd config list
|
|
! stdout 'example.atlassian.net'
|
|
stdout 'jira.project'
|