Files
cleveragents-core/features/reactive_application_coverage_boost.feature
T
freemo a808c395f9
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / build (pull_request) Successful in 15s
CI / quality (pull_request) Successful in 17s
CI / typecheck (pull_request) Successful in 35s
CI / security (pull_request) Successful in 50s
CI / unit_tests (pull_request) Successful in 2m46s
CI / integration_tests (pull_request) Successful in 3m16s
CI / docker (pull_request) Successful in 40s
CI / coverage (pull_request) Successful in 5m6s
CI / lint (push) Successful in 13s
CI / quality (push) Successful in 16s
CI / build (push) Successful in 18s
CI / security (push) Successful in 32s
CI / typecheck (push) Successful in 35s
CI / benchmark-regression (push) Has been skipped
CI / unit_tests (push) Successful in 2m52s
CI / integration_tests (push) Successful in 3m8s
CI / docker (push) Successful in 39s
CI / coverage (push) Successful in 5m53s
CI / benchmark-publish (push) Successful in 16m55s
CI / benchmark-regression (pull_request) Successful in 33m0s
test(coverage): add Behave BDD tests to improve unit test coverage across 53 source modules
Add 53 new .feature files and corresponding step definition files targeting
uncovered lines identified in build/coverage.xml. Fix AmbiguousStep conflicts
in 7 pre-existing step files by disambiguating step text.

New tests cover: ACP clients/facade, actor CLI/config, application container,
ACMS service/strategies, async worker, automation profile CLI, autonomy
guardrail, bridge, change model, config CLI/service, context service,
cross-plan correction, database models, decision service, decomposition
clustering/service, discovery handler, langchain chat provider, langgraph
nodes, materializers, multi-project service, plan apply/CLI/lifecycle/model/
preflight/resume/service, PostgreSQL analyzer, project CLI/context CLI,
provider registry, reactive application/route, repositories, resolver handler,
resource registry service, resume model, retry patterns, sandbox protocol,
server CLI, skill CLI/service, skills registry, subplan execution/service,
system CLI, UKO loader, UoW, and YAML template engine.

Closes #645
2026-03-09 13:01:58 -04:00

37 lines
2.0 KiB
Gherkin

Feature: Reactive application coverage boost
As a developer
I want to exercise the remaining uncovered lines in reactive/application.py
So that code coverage is maximized
Scenario: Logging adds a handler when root logger has no handlers
Given a reactive app with all root logger handlers removed
When I configure logging with verbose level 2
Then the root logger should have at least one handler
And the handler format should include the module name pattern
Scenario: Ensure agent registered creates instance from config when agent not already present
Given a reactive app with a route referencing an agent not yet registered but present in config
When I register agents from config triggering deferred registration
Then the deferred config agent should be registered in the stream router
And the deferred config agent alias should also be registered
Scenario: Initialize graph context refreshes stage order when stages are missing
Given a reactive app with a global context that has a partial stage order list
When I initialize the graph context
Then the stage order should be refreshed to the full default list
Scenario: Initialize graph context resets writing stage when current value is invalid
Given a reactive app with a global context that has an invalid writing stage
When I initialize the graph context
Then the writing stage should be reset to intro
Scenario: Follow chained edges returns immediately when next node is end
Given a reactive app configured for chained edge traversal to end node
When I follow chained edges starting from the end node
Then the chained edge result should be the current message with should_return true
Scenario: Follow chained edges falls through when next node becomes falsy
Given a reactive app configured for chained edge traversal to a falsy node
When I follow chained edges starting from a node that chains to a falsy node
Then the chained edge result should be the current message with should_return false