Skip to content

Compact and deduplicate test suite#828

Open
adilhafeez wants to merge 2 commits intomainfrom
adil/tests_update
Open

Compact and deduplicate test suite#828
adilhafeez wants to merge 2 commits intomainfrom
adil/tests_update

Conversation

@adilhafeez
Copy link
Copy Markdown
Contributor

@adilhafeez adilhafeez commented Mar 15, 2026

Summary

  • Extract generate_storage_tests! macro to deduplicate 15 CRUD/merge tests across memory and PostgreSQL state storage backends
  • Consolidate 27 signal analyzer tests into 6 table-driven tests (char_ngram, token_cosine, layered matching, fuzzy matching, false-positive guards, dissatisfaction/low-mood)
  • Extract shared test fixtures (default_routes(), default_conversation()) in router and orchestrator test files
  • Parametrize Python CLI tests for config validation and version checking
  • Remove 2 dead tests (test_skip_version_check_env_var, test_arch_agent_config_default)
  • Extract make_sse_event() and openai_content_chunk() test helpers for streaming response tests

Net result: ~40 fewer test functions, ~670 fewer lines, same coverage.

- Extract generate_storage_tests! macro for shared CRUD tests across memory/postgresql backends
- Move merge tests to mod.rs (testing default trait method once)
- Consolidate signal analyzer tests into table-driven tests
- Extract shared fixtures in router test files
- Parametrize Python CLI tests
- Remove dead tests (test_skip_version_check_env_var, test_arch_agent_config_default)
- Extract SSE event test helpers in streaming_response
@adilhafeez adilhafeez marked this pull request as ready for review March 16, 2026 18:08
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