forked from cleveragents/cleveragents-core
29 lines
1.4 KiB
Plaintext
29 lines
1.4 KiB
Plaintext
*** Settings ***
|
|
Documentation Integration test for cleveragents CLI
|
|
Library Process
|
|
Library OperatingSystem
|
|
|
|
*** Test Cases ***
|
|
Check CleverAgents Version Command
|
|
[Documentation] Test that cleveragents --version returns the correct version
|
|
${result} = Run Process python -m cleveragents --version timeout=5s
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} version 0.1.0
|
|
|
|
Check CleverAgents Version Command Stderr
|
|
[Documentation] Ensure version command doesn't produce errors on stderr
|
|
${result} = Run Process python -m cleveragents --version timeout=5s
|
|
Should Be Empty ${result.stderr}
|
|
|
|
Check CleverAgents Help Command
|
|
[Documentation] Test that cleveragents --help works correctly
|
|
${result} = Run Process python -m cleveragents --help timeout=5s
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Contain ${result.stdout} Usage:
|
|
Should Contain ${result.stdout} Options:
|
|
Should Contain ${result.stdout} Commands:
|
|
|
|
Check CleverAgents Invalid Command
|
|
[Documentation] Test that invalid commands return appropriate error code
|
|
${result} = Run Process python -m cleveragents --invalid-option timeout=5s
|
|
Should Not Be Equal As Integers ${result.rc} 0 |