Files
cleveragents-core/features/actor_run_cli_coverage.feature
T

50 lines
1.9 KiB
Gherkin

Feature: Actor run command coverage
As a developer
I want the actor run command module covered
So the standalone actor run command stays reliable
@coverage
Scenario: Actor run command loads context and persists output
Given an actor CLI runner
And I have an actor JSON config file
And I have a saved context JSON file
And I have an actor output file path
When I invoke the actor-run command with load context and a context name
Then the actor run should write output and persist context
@coverage
Scenario: Actor run command loads context without name
Given an actor CLI runner
And I have an actor JSON config file
And I have a saved context JSON file
When I invoke the actor-run command with load context only
Then the actor run should update global context and echo result
@coverage
Scenario: Actor run command reuses named context
Given an actor CLI runner
And I have an actor JSON config file
When I invoke the actor-run command with context only
Then the actor run should reuse saved context
@coverage
Scenario: Actor run command executes without context
Given an actor CLI runner
And I have an actor JSON config file
When I invoke the actor-run command without any context
Then the actor run should call single shot without context manager
@coverage
Scenario: Actor run command reports unsafe configuration error
Given an actor CLI runner
And I have an actor JSON config file
When I invoke the actor-run command with an unsafe configuration error
Then the actor run should exit with error code 1
@coverage
Scenario: Actor run command reports clever agents exception
Given an actor CLI runner
And I have an actor JSON config file
When I invoke the actor-run command with a clever agents exception
Then the actor run should exit with error code 2