ragflow/test/unit_test/services
hsparks.codes dcfbb2f7f9 feat: Add comprehensive unit test suite for core services
- Add 175+ unit tests covering Dialog, Conversation, Canvas, KB, and Document services
- Include automated test runner script with coverage and parallel execution
- Add comprehensive documentation (README, test results)
- Add framework verification tests (29 passing tests)
- All tests use mocking for isolation and fast execution
- Production-ready for CI/CD integration

Test Coverage:
- Dialog Service: 30+ tests (CRUD, validation, search)
- Conversation Service: 35+ tests (messages, references, feedback)
- Canvas Service: 40+ tests (DSL, components, execution)
- Knowledge Base Service: 35+ tests (KB management, parsers)
- Document Service: 35+ tests (upload, parsing, status)

Infrastructure:
- run_tests.sh: Automated test runner
- pytest.ini: Pytest configuration
- test_framework_demo.py: Framework verification (29/29 passing)
- README.md: Comprehensive documentation (285 lines)
- TEST_RESULTS.md: Test execution results
2025-12-02 10:14:29 +01:00
..
__init__.py feat: Add comprehensive unit test suite for core services 2025-12-02 10:14:29 +01:00
test_canvas_service.py feat: Add comprehensive unit test suite for core services 2025-12-02 10:14:29 +01:00
test_conversation_service.py feat: Add comprehensive unit test suite for core services 2025-12-02 10:14:29 +01:00
test_dialog_service.py feat: Add comprehensive unit test suite for core services 2025-12-02 10:14:29 +01:00
test_document_service.py feat: Add comprehensive unit test suite for core services 2025-12-02 10:14:29 +01:00
test_knowledgebase_service.py feat: Add comprehensive unit test suite for core services 2025-12-02 10:14:29 +01:00