Add test infrastructure and initial test coverage#5
Open
pdettori wants to merge 1 commit intoorchestrate/precommitfrom
Open
Add test infrastructure and initial test coverage#5pdettori wants to merge 1 commit intoorchestrate/precommitfrom
pdettori wants to merge 1 commit intoorchestrate/precommitfrom
Conversation
Add pytest-based test suite with 52 tests covering: - config: _get_bool, _get_int, and from_env for all config dataclasses - prompt: serialize_supervisor and build_prompt - a2a_client: URL normalization, text extraction from messages and tasks - runner: TaskResult and RunSummary statistics Test infrastructure: - tests/conftest.py with shared A2AConfig fixture - pytest config in pyproject.toml - All tests run without external services (mocked where needed) Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com> Signed-off-by: Paolo Dettori <dettori@us.ibm.com>
This was referenced Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
test_config.py— 17 tests for_get_bool,_get_int, and allfrom_envmethods (A2AConfig, AppWorldConfig, OTELConfig, DebugConfig)test_prompt.py— 9 tests forserialize_supervisorandbuild_prompttest_a2a_client.py— 19 tests for URL normalization, text extraction from A2A messages and taskstest_runner.py— 7 tests forTaskResultandRunSummarystatistics (percentiles, wall time)[tool.pytest.ini_options]topyproject.tomlDepends on #4 (pre-commit hooks).
Test plan
pytest tests/ -v— 52 passed, 0 failedpre-commit run --all-filespassesappworldin test files (isolated from external deps)🤖 Generated with Claude Code