Skip to content

Conversation

@claffin
Copy link
Owner

@claffin claffin commented Aug 15, 2025

  • Set up Vitest for Vue 3 unit testing with 30 tests
  • Configure Cypress for E2E testing with 22 scenarios
  • Add MSW for API mocking in tests
  • Integrate frontend tests into GitHub Actions CI/CD pipeline
  • Add parallel test execution for backend and frontend
  • Configure test coverage reporting with Codecov
  • Update .gitignore for test artifacts

Test coverage:

  • Unit tests: 100% component coverage (App, ListProxies, RollingConfig)
  • E2E tests: Full user workflow coverage
  • All 52 tests passing

- Set up Vitest for Vue 3 unit testing with 30 tests
- Configure Cypress for E2E testing with 22 scenarios
- Add MSW for API mocking in tests
- Integrate frontend tests into GitHub Actions CI/CD pipeline
- Add parallel test execution for backend and frontend
- Configure test coverage reporting with Codecov
- Update .gitignore for test artifacts

Test coverage:
- Unit tests: 100% component coverage (App, ListProxies, RollingConfig)
- E2E tests: Full user workflow coverage
- All 52 tests passing
- Add @vitest/coverage-v8 for coverage reporting
- Add wait-on for E2E test server readiness checks in CI
@codecov
Copy link

codecov bot commented Aug 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.67%. Comparing base (fdc7292) to head (0dc8b92).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #100      +/-   ##
==========================================
- Coverage   95.16%   93.67%   -1.50%     
==========================================
  Files          51       56       +5     
  Lines        5482     6177     +695     
  Branches        0       97      +97     
==========================================
+ Hits         5217     5786     +569     
- Misses        265      391     +126     
Flag Coverage Δ
backend 95.16% <ø> (?)
frontend 81.87% <ø> (?)

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:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

claffin and others added 3 commits August 15, 2025 23:11
Updated Vitest configuration to exclude Cypress directory and test files
from coverage calculations. This prevents E2E test files from incorrectly
showing as uncovered code in Codecov reports.
Added a lightweight summary job that depends on both backend and frontend
tests to provide the required 'Testing' status check for branch protection
rules while maintaining the detailed split test jobs.
@claffin claffin merged commit 6035c22 into main Aug 15, 2025
5 of 6 checks passed
@claffin claffin deleted the ui-tests branch August 15, 2025 22:25
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