Files
cleveragents-core/features/tdd_tool_cli_bootstrap.feature
HAL9000 e2df239bd8 fix(cli): bootstrap registry database automatically
Ensure tool and validation CLI commands initialize the SQLite persistence layer on first use and add regression coverage.\n\nISSUES CLOSED: #6885
2026-04-10 20:50:20 +00:00

18 lines
939 B
Gherkin

@tdd_issue @tdd_issue_6885
Feature: TDD Issue #6885 — Tool CLI bootstraps database automatically
As a developer
I want `agents tool list` and `agents validation add` to work on a fresh install
So that users do not have to run a manual database upgrade before using the registry
Scenario: Tool list command bootstraps the database automatically
Given a CLI runner without a bootstrapped registry database
When I invoke tool list without prior bootstrap
Then the tool list command should exit successfully
And the tool list output should indicate that no tools are registered
Scenario: Validation add command bootstraps the database automatically
Given a CLI runner without a bootstrapped registry database
When I invoke validation add without prior bootstrap
Then the validation add command should exit successfully
And the validation add output should report the registered validation in JSON