Skip to content

Combine hot reload + hot restart tests to speed up test runs- #6168 - #6170

Merged
DanTup merged 1 commit into
merge-debug-tests-2from
merge-debug-tests-3
Sep 5, 2026
Merged

DanTup merged 1 commit into
merge-debug-tests-2from
merge-debug-tests-3

Conversation

@DanTup

@DanTup DanTup commented Sep 5, 2026

Copy link
Copy Markdown
Member

Spawning a real Flutter app is very slow, so combe these to have a single launch.

See #6165

@DanTup DanTup added this to the v3.144.0 milestone Sep 5, 2026
@DanTup DanTup added the is testing Relates to the testing (either manual or automated) of Dart Code label Sep 5, 2026
@codecov

codecov Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.82%. Comparing base (5dc2a55) to head (648dce1).

Additional details and impacted files
@@                   Coverage Diff                   @@
##           merge-debug-tests-2    #6170      +/-   ##
=======================================================
+ Coverage                70.77%   70.82%   +0.05%     
=======================================================
  Files                      170      170              
  Lines                    13158    13158              
  Branches                  2649     2649              
=======================================================
+ Hits                      9312     9319       +7     
+ Misses                    3325     3319       -6     
+ Partials                   521      520       -1     

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Spawning a real Flutter app is very slow, so combe these to have a single launch.

See #6165

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is a straightforward test consolidation with only a minor naming/diagnostics nit that doesn’t affect correctness.

Pull request overview

This PR speeds up the Flutter “test device” debug test suite by combining hot reload and hot restart assertions into a single test, avoiding an extra (slow) Flutter app launch per run.

Changes:

  • Merged the hot restart test into the existing hot reload test flow to reuse a single debugger/app session.
  • Updated the test name to reflect coverage of both hot reload and hot restart behaviors.
File summaries
File Description
src/test/flutter_debug/flutter_run.test_device.test.ts Combines hot reload and hot restart coverage into one test to reduce repeated Flutter app launches and speed up CI.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/test/flutter_debug/flutter_run.test_device.test.ts
DanTup added a commit that referenced this pull request Sep 5, 2026
@DanTup
DanTup merged commit ea3bfc7 into master Sep 5, 2026
25 checks passed
DanTup added a commit that referenced this pull request Sep 5, 2026
@DanTup
DanTup deleted the merge-debug-tests-3 branch September 7, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

is testing Relates to the testing (either manual or automated) of Dart Code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants