Files
cleveragents-core/features/server_lifecycle_edge_coverage.feature
brent.edwards f7e9549779
CI / load-versions (pull_request) Successful in 18s
CI / push-validation (pull_request) Successful in 26s
CI / build (pull_request) Successful in 47s
CI / lint (pull_request) Failing after 1m0s
CI / quality (pull_request) Successful in 1m3s
CI / typecheck (pull_request) Successful in 1m12s
CI / security (pull_request) Successful in 1m19s
CI / helm (pull_request) Successful in 44s
CI / unit_tests (pull_request) Failing after 2m51s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Failing after 10m52s
CI / status-check (pull_request) Failing after 4s
fix(server): correct A2aRequest.method usage and A2A test payloads
Add more feature tests.

Issues closed: #865
2026-06-18 03:09:04 -04:00

27 lines
1.3 KiB
Gherkin

Feature: Server lifecycle uncovered-line coverage
Scenario: Start creates ASGI app when not yet started with mocked server run
Given a mock server environment for lifecycle start
When I call start on the lifecycle
Then the ASGI app should be created successfully
Scenario: Start sets is_started to True after completion
Given a mock server environment for lifecycle start
When I call start on the lifecycle
Then the lifecycle is_started property should be true
Scenario: Start logs server starting message on successful start
Given a mock server environment for lifecycle start with logging capture
When I call start on the lifecycle
Then the logger should have recorded a message containing "a2a.server.starting"
Scenario: Start completes without error when uvicorn runs once and exits cleanly
Given a mock server environment for lifecycle start with single-run uvicorn
And the lifecycle has properties captured
When I call start on the lifecycle
Then the lifecycle should be stopped after start returns
Scenario: _install_signal_handlers is safe when called from a non-main thread
Given a ServerLifecycle in a background thread context
When I invoke _install_signal_handlers from that background thread
Then no signal handlers should be installed (early return)