test: optimize test suite — parametrize duplicates, delete redundant files - #60
test: optimize test suite — parametrize duplicates, delete redundant files#60Cipher208 wants to merge 8 commits into
Conversation
Deleted exact copies of test_integration.py and test_auth_backup.py: - test_all.py: duplicates test_core + test_features + test_mcp - test_mcp/test_mcp.py: exact copy of test_auth_backup.py - test_lifecycle/test_lifecycle.py: copies test_integration.py - test_hooks/test_hooks.py: copies test_integration.py - test_graph/test_graph.py: copies test_integration.py - test_rag/test_rag.py: copies test_integration.py - test_rag/test_rag_edge_cases.py: overlap with test_integration + search_facade
Kept: test_reflex_buffer (unique L1 buffer test), test_compression (unique feature) Removed: 5 core tests + 5 feature tests that duplicated test_integration.py
…0 tests) Removed: backup(4), audit(3), rate_limiter(2), import_export(1) All duplicated by test_integration.py
Kept: remember/recall/forget (parametrized user/agent), rag (4), saga, middleware, embeddings, migrations, connection_manager, dashboard, metrics. Removed: duplicate tests covered by test_tools_e2e.py and unit tests.
Consolidated: noise detection (2→1 parametrized), technical keywords (2→1 parametrized), question bonus (1→1 parametrized), total_in_unit_interval (1→1 parametrized). All invariants preserved, 15→22 test cases (more coverage, fewer test functions).
Consolidated: ScoringWeights (2→1 parametrized), CorpusStats (3→1 parametrized), relevance_score (2→1 parametrized), type_boost (3→1 parametrized with 8 cases). Kept unique: novelty edge cases, rank_sync ordering/novelty/boost, rank_async.
Consolidated: auto_strategy (4→1 parametrized), mib/hybrid (2→1 parametrized), format_result (2→1 parametrized). Kept unique: strategy init, materialize, user filtering.
…ons) memory_types: validate_kind (2→1 parametrized), can_archive (5→2 parametrized), kind_for_text (4→1 parametrized). mib_quantize: embed_to_binary (2→1 parametrized), hamming_distance (2→1 parametrized), edge_cases (3→1 parametrized).
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
Results
Changes
Verification