Skip to content

perf(client): speed up test runs without reducing coverage - #3111

Open
apalchys wants to merge 407 commits into
masterfrom
feature/optimize-tests
Open

apalchys wants to merge 407 commits into
masterfrom
feature/optimize-tests

Conversation

@apalchys

@apalchys apalchys commented Sep 11, 2026

Copy link
Copy Markdown
Member

Pull Request Guidelines

Issue:
Optimize tests

Description:
Latest local client coverage run: 2m 26s (145.90s), compared with the recorded 8m 11s baseline (490.72s): 70.3% less time. Both runs used four workers. The latest run includes Vitest 5 and subsequent test cleanup, so this is a historical comparison across toolchain versions.

  • Enabled dependency optimization and updated Vitest to 5.0.0
  • Moved 34 DOM-free test files to Node
  • Consolidated repeated UI renders, preserving assertions
  • Fixed async flakes and disabled automatic retries
  • Reduced client warnings from 12,338 to 6 in the full unit test run

Latest coverage run at c5530616:

  • Command: npm run test:ci --workspace client -- --maxWorkers=4
  • 433 test files and 1,875 tests passed
  • Coverage: 95.48% statements, 93.09% branches, 95.10% functions, 95.54% lines
  • All four coverage thresholds remain at 90%

Self-Check:

  • Database migration added (if required)
  • Changes tested locally

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

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.

3 participants