Files
cleveragents-core/features/cli_commands_coverage.feature

97 lines
3.1 KiB
Gherkin

Feature: CLI Commands Full Coverage
As a developer
I want to test all CLI command paths
So that I achieve comprehensive coverage
Scenario: Context add command with file
Given I have a temporary test directory
And I have a CLI test file "test.py" with content "print('test')"
When I run context add with file "test.py"
Then the context add should execute
Scenario: Context add command with directory
Given I have a temporary test directory
And I have multiple test files in a directory
When I run context add with directory path
Then the context add should execute
Scenario: Context remove command
Given I have a temporary test directory
And I have added files to context
When I run context remove with a file
Then the context remove should execute
Scenario: Context clear command
Given I have a temporary test directory
And I have added files to context
When I run context clear
Then the context clear should execute
Scenario: Context list command
Given I have a temporary test directory
And I have added files to context
When I run context list
Then the context list should execute
Scenario: Plan tell command
Given I have a temporary test directory
When I run plan tell with instruction "test plan"
Then the plan tell should execute
Scenario: Plan build command
Given I have a temporary test directory
And I have an existing plan
When I run plan build
Then the plan build should execute
Scenario: Plan apply command
Given I have a temporary test directory
And I have a built plan
When I run plan apply
Then the plan apply should execute
Scenario: Plan list command
Given I have a temporary test directory
When I run plan list
Then the plan list should execute
Scenario: Plan show command
Given I have a temporary test directory
And I have an existing plan
When I run plan show with plan id
Then the plan show should execute
Scenario: Plan delete command
Given I have a temporary test directory
And I have an existing plan
When I run plan delete with plan id
Then the plan delete should execute
Scenario: Project init command
Given I have a temporary test directory
When I run project init
Then the project init should execute
Scenario: Project init with force
Given I have a temporary test directory
And I have an existing project
When I run project init with force flag
Then the project init should execute with force
Scenario: Project status command
Given I have a temporary test directory
And I have an initialized project with basic config
When I run project status
Then the project status should execute
Scenario: Context command group help
When I run context command with help
Then the context help should display
Scenario: Plan command group help
When I run plan command with help
Then the plan help should display
Scenario: Project command group help
When I run project command with help
Then the project help should display