Files
cleveragents-core/features/skill_cli_coverage.feature
T
freemo 55aee7cf22
CI / lint (pull_request) Successful in 18s
CI / quality (pull_request) Successful in 21s
CI / benchmark-publish (pull_request) Has been skipped
CI / build (pull_request) Successful in 14s
CI / security (pull_request) Successful in 49s
CI / typecheck (pull_request) Successful in 56s
CI / integration_tests (pull_request) Successful in 2m35s
CI / unit_tests (pull_request) Successful in 14m30s
CI / docker (pull_request) Successful in 55s
CI / benchmark-regression (pull_request) Successful in 21m11s
CI / coverage (pull_request) Successful in 34m22s
CI / lint (push) Successful in 12s
CI / build (push) Successful in 16s
CI / quality (push) Successful in 17s
CI / security (push) Successful in 29s
CI / typecheck (push) Successful in 1m0s
CI / benchmark-regression (push) Has been skipped
CI / integration_tests (push) Successful in 4m54s
CI / benchmark-publish (push) Successful in 11m48s
CI / unit_tests (push) Successful in 16m30s
CI / docker (push) Successful in 28s
CI / coverage (push) Successful in 25m45s
fix(test): commit after each add_skill to prevent session GC rollback, and improved coverage.
The step_register_skills_table step called add_skill in a loop but only
committed once at the end. Because SkillRepository.create() obtains a
new session per call and only flushes (never commits), the intermediate
sessions could be garbage-collected before the final commit, rolling
back their transactions on the shared SQLite :memory: connection. Moving
_commit_pending inside the loop ensures each skill is durably committed
before the next session is created.

ISSUES CLOSED: #418
2026-02-24 12:19:04 -05:00

34 lines
1.4 KiB
Gherkin

Feature: Skill CLI uncovered lines
Cover uncovered lines in src/cleveragents/cli/commands/skill.py:
273, 343-344, 353, 393, 589-590, 593-594.
Scenario: Show skill with unregistered include
Given a clean skill service
And a skill with an include pointing to a non-registered skill
When I run skill show for the skill with unregistered include
Then the show output contains the not registered marker
Scenario: Show skill when capability summary raises ValueError
Given a clean skill service
And a registered skill for capability error testing
When I run skill show with capability summary raising ValueError
Then the show output contains OK and no capability panel
Scenario: Show skill with dependent actors
Given a clean skill service
And a registered skill for dependent actors testing
When I run skill show with dependents returning actors
Then the show output contains the actors reference line
Scenario: Tools command with agent_skill entries
Given a clean skill service
And a registered skill with agent_skill sources
When I run skill tools for the agent_skill skill
Then the tools output contains agent_skill source type
Scenario: Remove skill with dependent actors
Given a clean skill service
And a registered skill for removal with actor dependents
When I run skill remove with dependents returning actors
Then the remove output contains the actor dependency warning