Files
temp/features/actor_run_cli_coverage.feature

87 lines
3.3 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
@coverage
Scenario: Actor run command with single skill flag
Given an actor CLI runner
And I have an actor JSON config file
When I invoke the actor-run command with a single skill flag
Then the actor run should pass skill names to the runtime
@coverage
Scenario: Actor run command with multiple skill flags
Given an actor CLI runner
And I have an actor JSON config file
When I invoke the actor-run command with multiple skill flags
Then the actor run should pass all skill names to the runtime
@coverage
Scenario: Actor run command with unknown skill flag
Given an actor CLI runner
And I have an actor JSON config file
When I invoke the actor-run command with an unknown skill flag
Then the actor run should exit with skill not found error
@coverage
Scenario: Actor run command with skill and context flags combined
Given an actor CLI runner
And I have an actor JSON config file
When I invoke the actor-run command with skill and context flags
Then the actor run should pass skill names to the runtime
And the context manager should have been instantiated
And the context manager exists should have been called
@coverage
Scenario: Actor run command with duplicate skill names
Given an actor CLI runner
And I have an actor JSON config file
When I invoke the actor-run command with duplicate skill flags
Then the actor run should pass duplicate skill names to the runtime