36 lines
1.5 KiB
Gherkin
36 lines
1.5 KiB
Gherkin
Feature: Error Verbosity Control
|
|
Tests for error message verbosity based on the verbose flag
|
|
Error details should only be shown when the -v/--verbose flag is enabled
|
|
|
|
Background:
|
|
Given a clean test environment
|
|
Given a test configuration file with a tool agent
|
|
|
|
Scenario: Error message without verbose flag hides details
|
|
Given the application is initialized with verbose set to False
|
|
When a tool execution fails with a detailed error
|
|
Then the error message should not contain specific error details
|
|
And the error message should suggest using verbose flag
|
|
And the error message should contain "Error:"
|
|
|
|
|
|
Scenario: Missing agent error without verbose flag hides tool name
|
|
Given the application is initialized with verbose set to False
|
|
When executing a nonexistent tool
|
|
Then the error message should not contain the tool name
|
|
And the error message should suggest using verbose flag
|
|
And the error message should contain "Error:"
|
|
|
|
Scenario: Missing agent error with verbose flag shows tool name
|
|
Given the application is initialized with verbose set to True
|
|
When executing a nonexistent tool
|
|
Then the error message should contain the tool name
|
|
And the error message should contain "Error:"
|
|
|
|
Scenario: Verbose flag is stored correctly in application instance
|
|
Given the application is initialized with verbose set to True
|
|
Then the application verbose flag should be True
|
|
|
|
Given the application is initialized with verbose set to False
|
|
Then the application verbose flag should be False
|