Files
cleveragents-core/tests/integration/commands_test.robot
T

41 lines
1.9 KiB
Plaintext

*** Settings ***
Documentation Additional integration tests for cleveragents CLI commands
Library Process
Library OperatingSystem
Library String
*** Test Cases ***
Check Interactive Command Help
[Documentation] Test that interactive command help is available
${result} = Run Process python -m cleveragents interactive --help
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} interactive
Should Contain ${result.stdout} Start an interactive session
Check Run Command Help
[Documentation] Test that run command help is available
${result} = Run Process python -m cleveragents run --help
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} run
Should Contain ${result.stdout} single-shot mode
Check Visualize Command Help
[Documentation] Test that visualize command help is available
${result} = Run Process python -m cleveragents visualize --help
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} visualize
Should Contain ${result.stdout} Visualize the reactive stream
Check Context Command Help
[Documentation] Test that context command help is available
${result} = Run Process python -m cleveragents context --help
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} context
Should Contain ${result.stdout} Manage conversation contexts
Check Generate Examples Command Help
[Documentation] Test that generate-examples command help is available
${result} = Run Process python -m cleveragents generate-examples --help
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} generate-examples
Should Contain ${result.stdout} Generate reactive example