Skip to content

Add test infrastructure and initial test coverage#5

Open
pdettori wants to merge 1 commit intoorchestrate/precommitfrom
orchestrate/tests
Open

Add test infrastructure and initial test coverage#5
pdettori wants to merge 1 commit intoorchestrate/precommitfrom
orchestrate/tests

Conversation

@pdettori
Copy link
Contributor

Summary

  • Add pytest-based test suite with 52 tests across 4 modules
  • test_config.py — 17 tests for _get_bool, _get_int, and all from_env methods (A2AConfig, AppWorldConfig, OTELConfig, DebugConfig)
  • test_prompt.py — 9 tests for serialize_supervisor and build_prompt
  • test_a2a_client.py — 19 tests for URL normalization, text extraction from A2A messages and tasks
  • test_runner.py — 7 tests for TaskResult and RunSummary statistics (percentiles, wall time)
  • All tests run without external services — mocked where needed
  • Add [tool.pytest.ini_options] to pyproject.toml

Depends on #4 (pre-commit hooks).

Test plan

  • pytest tests/ -v — 52 passed, 0 failed
  • Verify pre-commit run --all-files passes
  • Confirm no import of appworld in test files (isolated from external deps)

🤖 Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant