TEST-INFRA: [missing-test-levels] Add tests for a2a module #1594

Open
opened 2026-04-02 23:01:57 +00:00 by freemo · 1 comment
Owner

Metadata

  • Branch: test/a2a-module-test-coverage
  • Commit Message: test(a2a): add unit tests for a2a module — __init__, asgi, cli_bootstrap, clients, errors, events, facade, models, server_config, transport, versioning
  • Milestone: v3.8.0
  • Parent Epic: #933

Description

The following files in the src/cleveragents/a2a module are missing tests:

  • src/cleveragents/a2a/__init__.py
  • src/cleveragents/a2a/asgi.py
  • src/cleveragents/a2a/cli_bootstrap.py
  • src/cleveragents/a2a/clients.py
  • src/cleveragents/a2a/errors.py
  • src/cleveragents/a2a/events.py
  • src/cleveragents/a2a/facade.py
  • src/cleveragents/a2a/models.py
  • src/cleveragents/a2a/server_config.py
  • src/cleveragents/a2a/transport.py
  • src/cleveragents/a2a/versioning.py

All unit tests must be written using Behave (Gherkin syntax) and placed in the features/ directory. Mocks must be placed in features/mocks/. Coverage must remain >= 97%.

Subtasks

  • Write Behave feature file(s) for a2a/__init__.py — public API surface and re-exports
  • Write Behave feature file(s) for a2a/asgi.py — ASGI application lifecycle and middleware
  • Write Behave feature file(s) for a2a/cli_bootstrap.py — CLI bootstrap entry points
  • Write Behave feature file(s) for a2a/clients.py — A2A client construction and request dispatch
  • Write Behave feature file(s) for a2a/errors.py — error types, codes, and JSON-RPC 2.0 error mapping
  • Write Behave feature file(s) for a2a/events.py — event types and SSE event formatting
  • Write Behave feature file(s) for a2a/facade.py — A2A facade session and plan lifecycle operations
  • Write Behave feature file(s) for a2a/models.py — A2A request/response Pydantic models
  • Write Behave feature file(s) for a2a/server_config.py — server configuration models and defaults
  • Write Behave feature file(s) for a2a/transport.py — stdio and HTTP transport implementations
  • Write Behave feature file(s) for a2a/versioning.py — protocol versioning and negotiation
  • Add any required mock implementations to features/mocks/
  • Verify nox -e unit_tests passes
  • Verify nox -e coverage_report reports >= 97%

Definition of Done

  • All subtasks above are checked off
  • All new tests are written in Behave (Gherkin) syntax under features/
  • No pytest-style or xUnit-style tests introduced
  • All mocks placed exclusively in features/mocks/
  • All code is statically typed and passes nox -e typecheck
  • The commit is created with the exact first-line message from Metadata
  • The commit is pushed to the branch specified in Metadata
  • A pull request is created, reviewed (2+ approvals), and merged
  • All nox stages pass
  • Coverage >= 97%

Automated by CleverAgents Bot
Supervisor: Test Infrastructure | Agent: ca-new-issue-creator

## Metadata - **Branch**: `test/a2a-module-test-coverage` - **Commit Message**: `test(a2a): add unit tests for a2a module — __init__, asgi, cli_bootstrap, clients, errors, events, facade, models, server_config, transport, versioning` - **Milestone**: v3.8.0 - **Parent Epic**: #933 ## Description The following files in the `src/cleveragents/a2a` module are missing tests: - `src/cleveragents/a2a/__init__.py` - `src/cleveragents/a2a/asgi.py` - `src/cleveragents/a2a/cli_bootstrap.py` - `src/cleveragents/a2a/clients.py` - `src/cleveragents/a2a/errors.py` - `src/cleveragents/a2a/events.py` - `src/cleveragents/a2a/facade.py` - `src/cleveragents/a2a/models.py` - `src/cleveragents/a2a/server_config.py` - `src/cleveragents/a2a/transport.py` - `src/cleveragents/a2a/versioning.py` All unit tests must be written using **Behave** (Gherkin syntax) and placed in the `features/` directory. Mocks must be placed in `features/mocks/`. Coverage must remain >= 97%. ## Subtasks - [ ] Write Behave feature file(s) for `a2a/__init__.py` — public API surface and re-exports - [ ] Write Behave feature file(s) for `a2a/asgi.py` — ASGI application lifecycle and middleware - [ ] Write Behave feature file(s) for `a2a/cli_bootstrap.py` — CLI bootstrap entry points - [ ] Write Behave feature file(s) for `a2a/clients.py` — A2A client construction and request dispatch - [ ] Write Behave feature file(s) for `a2a/errors.py` — error types, codes, and JSON-RPC 2.0 error mapping - [ ] Write Behave feature file(s) for `a2a/events.py` — event types and SSE event formatting - [ ] Write Behave feature file(s) for `a2a/facade.py` — A2A facade session and plan lifecycle operations - [ ] Write Behave feature file(s) for `a2a/models.py` — A2A request/response Pydantic models - [ ] Write Behave feature file(s) for `a2a/server_config.py` — server configuration models and defaults - [ ] Write Behave feature file(s) for `a2a/transport.py` — stdio and HTTP transport implementations - [ ] Write Behave feature file(s) for `a2a/versioning.py` — protocol versioning and negotiation - [ ] Add any required mock implementations to `features/mocks/` - [ ] Verify `nox -e unit_tests` passes - [ ] Verify `nox -e coverage_report` reports >= 97% ## Definition of Done - [ ] All subtasks above are checked off - [ ] All new tests are written in Behave (Gherkin) syntax under `features/` - [ ] No pytest-style or xUnit-style tests introduced - [ ] All mocks placed exclusively in `features/mocks/` - [ ] All code is statically typed and passes `nox -e typecheck` - [ ] The commit is created with the exact first-line message from Metadata - [ ] The commit is pushed to the branch specified in Metadata - [ ] A pull request is created, reviewed (2+ approvals), and merged - [ ] All nox stages pass - [ ] Coverage >= 97% --- **Automated by CleverAgents Bot** Supervisor: Test Infrastructure | Agent: ca-new-issue-creator
freemo added this to the v3.8.0 milestone 2026-04-02 23:02:35 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Priority/Medium (confirmed) — test coverage gap, not urgent
  • MoSCoW: MoSCoW/Should Have — the a2a module is a core component of the CleverAgents architecture (A2A protocol is the standard for all client-server communication per the spec). Missing tests for this critical module is a higher concern than missing tests for peripheral modules. Should Have.
  • Milestone: v3.8.0 (confirmed)
  • Parent Epic: #933

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: Priority/Medium (confirmed) — test coverage gap, not urgent - **MoSCoW**: MoSCoW/Should Have — the a2a module is a core component of the CleverAgents architecture (A2A protocol is the standard for all client-server communication per the spec). Missing tests for this critical module is a higher concern than missing tests for peripheral modules. Should Have. - **Milestone**: v3.8.0 (confirmed) - **Parent Epic**: #933 --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core#1594
No description provided.