Files
temp/tests/integration/error_verbosity_integration_test.robot
T

48 lines
1.9 KiB
Plaintext

*** Settings ***
Documentation Integration tests for error verbosity behavior in the CleverAgents application.
... These tests verify that the error verbosity feature works correctly in real-world scenarios,
... ensuring that detailed error messages are only shown when the verbose flag is enabled.
Library Process
Library OperatingSystem
*** Test Cases ***
Application Respects Verbose Flag In Run Command
[Documentation] Verify that -v flag is properly recognized and stored by the application
[Tags] error_verbosity integration cli
# Check help output contains -v flag
${result}= Run Process python -m cleveragents run --help
... stderr=STDOUT
... timeout=5s
Should Contain ${result.stdout} -v, --verbose
Application Respects Verbose Flag In Interactive Command
[Documentation] Verify that interactive command also supports verbose flag
[Tags] error_verbosity integration cli
# Check that interactive command accepts -v flag
${result}= Run Process python -m cleveragents interactive
... --help
... stderr=STDOUT
... timeout=5s
Should Contain ${result.stdout} -v, --verbose
Multiple Verbose Levels Work With Run Command
[Documentation] Verify that multiple -v flags are accepted (for logging verbosity)
[Tags] error_verbosity integration cli
# Test with -vvv (should work for logging levels)
${result}= Run Process python -m cleveragents run
... -c tests/fixtures/simple_echo_config.yaml
... --unsafe
... --allow-rxpy-in-run-mode
... -p test
... -vvv
... stderr=STDOUT
... timeout=30s
# Command should execute successfully with multiple v flags
Should Be Equal As Integers ${result.rc} 0