Files
cleveragents-core/robot/version_test.robot
brent.edwards 3eecb79003 test(plan): TDD failing tests for checkpoint real rollback (bug #822)
TDD expected-fail tests proving bug #822 exists:
CheckpointService.rollback_to_checkpoint() returns a successful
RollbackResult but does not execute git reset --hard. Files modified
after the checkpoint remain unchanged after rollback.

Also fixes Robot Framework timeout robustness across the entire test
suite: all Run Process calls now use on_timeout=kill (prevents
SIGTERM-induced -15 exit codes under CI load) and timeouts increased
to 120s (prevents premature kills during heavy parallel execution).

ISSUES CLOSED: #839
2026-03-16 01:45:50 +00:00

32 lines
1.4 KiB
Plaintext

*** Settings ***
Documentation Integration test for cleveragents CLI
Library Process
Library OperatingSystem
Resource ${CURDIR}/v2_paths.resource
*** Variables ***
${PYTHON} python
*** Test Cases ***
Check CleverAgents Version Command
[Documentation] Test that cleveragents --version returns the correct version
${result} = Run Process ${PYTHON} -m cleveragents --version timeout=120s on_timeout=kill
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} CleverAgents 1.0.0
Check CleverAgents Version Command Stderr
[Documentation] Ensure version command doesn't produce errors on stderr
${result} = Run Process ${PYTHON} -m cleveragents --version timeout=120s on_timeout=kill
Should Be Empty ${result.stderr}
Check CleverAgents Help Command
[Documentation] Test that cleveragents --help works correctly
${result} = Run Process ${PYTHON} -m cleveragents --help timeout=120s on_timeout=kill
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} Usage:
Check CleverAgents Invalid Command
[Documentation] Test that invalid commands return appropriate error code
${result} = Run Process ${PYTHON} -m cleveragents --invalid-option timeout=120s on_timeout=kill
Should Not Be Equal As Integers ${result.rc} 0