Skip to content

Test/final#61

Merged
Chusi-Truth merged 11 commits intodevfrom
test/final
Dec 23, 2025
Merged

Test/final#61
Chusi-Truth merged 11 commits intodevfrom
test/final

Conversation

@Chusi-Truth
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings December 23, 2025 09:56
@Chusi-Truth Chusi-Truth merged commit 8257bc8 into dev Dec 23, 2025
3 of 4 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This is a comprehensive test infrastructure pull request that reorganizes and expands the backend testing suite. The PR introduces a three-tier test grouping system (core, external_api, mineru) with dedicated test runners, coverage configurations, and extensive new test coverage across authentication, database repositories, external API integrations, and MinerU PDF parsing. Additionally, it adds stress/load testing infrastructure with support for testing health endpoints, authenticated routes, academic search, and DeepSeek API calls.

Key Changes:

  • Implements pytest marker-based test grouping with separate execution scripts and coverage configurations
  • Adds comprehensive test coverage for schema validation, authentication flows, database repositories, external providers, and MinerU integration
  • Introduces stress testing suite with support for in-process ASGI testing and live server testing
  • Adds detailed documentation explaining test organization and execution

Reviewed changes

Copilot reviewed 54 out of 78 changed files in this pull request and generated no comments.

Show a summary per file
File Description
backend/pytest.ini Adds external_api and mineru pytest markers for test grouping
backend/conftest.py Adds auto-fixture to bypass Redis verification codes and creates media subdirectories
backend/tests/test_*.py (multiple new files) Comprehensive test coverage for schema validators, query parsers, MinerU, external providers, repositories, and endpoints
backend/scripts/test_*.sh Test execution scripts for core, external_api, and mineru test groups
backend/scripts/stress_test.py Enhanced with academic_search scenario and token file support
backend/scripts/deepseek_stress_test.py New DeepSeek API stress testing script
backend/scripts/mineru_comprehensive_check.py New MinerU concurrent parsing performance testing script
backend/scripts/run_stress_suite.sh Unified stress test suite runner
backend/.coveragerc.mineru Coverage configuration for MinerU test group
backend/TEST_GROUPS.md, backend/TEST_INDEX.md Comprehensive test documentation
backend/README.md Updated with test and stress testing documentation
backend/app/services/ai/llm_client.py Bug fix for chat_content_stream to prevent duplicate done events
.gitignore Excludes test-reports and .pip-cache directories

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.

2 participants