Skip to content

🧪 isolate mihomo integration tests#5

Merged
luoshuijs merged 1 commit intomainfrom
platform-mihomo-integration-test-ergonomics
Apr 19, 2026
Merged

🧪 isolate mihomo integration tests#5
luoshuijs merged 1 commit intomainfrom
platform-mihomo-integration-test-ergonomics

Conversation

@luoshuijs
Copy link
Copy Markdown
Contributor

Summary

  • switch integration bootstrap to repo-local PAI_TEST_* config, add cmd/integration-doctor, wrapper scripts, example env, and optional compose dependencies
  • replace fixed integration database reuse with per-test MySQL database creation/drop plus optional Redis prefix isolation
  • update CI to stop exporting TEST_DATABASE_SOURCE and use the new integration workflow instead

Test Plan

  • go test ./...
  • go test -tags=integration ./integration/...
  • pwsh -File .\scripts\integration.ps1 doctor
  • pwsh -File .\scripts\integration.ps1

Signed-off-by: luoshui <luoshuijs@outlook.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 19, 2026

Codecov Report

❌ Patch coverage is 31.98198% with 151 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.86%. Comparing base (8d853bb) to head (7d4e7db).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/testutil/integrationenv/env.go 34.32% 120 Missing and 12 partials ⚠️
cmd/integration-doctor/main.go 9.52% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #5      +/-   ##
==========================================
+ Coverage   27.52%   27.86%   +0.33%     
==========================================
  Files          25       27       +2     
  Lines        2728     2950     +222     
==========================================
+ Hits          751      822      +71     
- Misses       1859     1998     +139     
- Partials      118      130      +12     
Flag Coverage Δ
unit 27.86% <31.98%> (+0.33%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@luoshuijs luoshuijs merged commit 88ef7b1 into main Apr 19, 2026
4 checks passed
@luoshuijs luoshuijs deleted the platform-mihomo-integration-test-ergonomics branch April 19, 2026 12:03
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