forked from cleveragents/cleveragents-core
48cff5cfe0
Renames `plan lifecycle-list` to `plan list` and `plan lifecycle-apply` to `plan apply` to align with the specification's canonical command names. Removes legacy V2 plan commands that occupied those names. - Renamed CLI command registrations from lifecycle-list/lifecycle-apply to list/apply - Removed legacy V2 apply and list commands (~200 lines) - Updated apply shortcut in main.py to delegate to v3 lifecycle - Added defensive null check for plan existence in apply command - Updated 63+ test, doc, and benchmark files for consistency Closes #881 Co-authored-by: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Co-committed-by: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
86 lines
2.8 KiB
Gherkin
86 lines
2.8 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 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 |