Skip to content

Add tests for "flutter create" settings editor - #6041

Merged
DanTup merged 1 commit into
masterfrom
settings-editor-tests
Apr 22, 2026
Merged

DanTup merged 1 commit into
masterfrom
settings-editor-tests

Conversation

@DanTup

@DanTup DanTup commented Apr 22, 2026

Copy link
Copy Markdown
Member

See #6025

@DanTup DanTup added this to the v3.134.0 milestone Apr 22, 2026
@DanTup DanTup added the is testing Relates to the testing (either manual or automated) of Dart Code label Apr 22, 2026
@DanTup
DanTup requested a review from Copilot April 22, 2026 14:08

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

This comment was marked as resolved.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request exposes the promptForNameWithSettings method as public and adds it to the FlutterCommandHandler interface. It also introduces a comprehensive suite of tests for the settings editor, including helper functions to stub VS Code's InputBox and QuickPick components to simulate user interactions. These tests verify that various setting types, such as organization strings, enums, booleans, and multi-enum platforms, are correctly updated. I have no feedback to provide.

@codecov

codecov Bot commented Apr 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.18%. Comparing base (fa5e3da) to head (1a1f0c1).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6041      +/-   ##
==========================================
+ Coverage   69.58%   70.18%   +0.60%     
==========================================
  Files         171      171              
  Lines       12958    12958              
  Branches     2590     2590              
==========================================
+ Hits         9017     9095      +78     
+ Misses       3451     3378      -73     
+ Partials      490      485       -5     

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

@DanTup
DanTup force-pushed the settings-editor-tests branch from 1a1f0c1 to 95c7327 Compare April 22, 2026 14:19
@DanTup
DanTup merged commit e9094aa into master Apr 22, 2026
22 checks passed
@DanTup
DanTup deleted the settings-editor-tests branch April 22, 2026 14:29
@DanTup DanTup changed the title Add settings for "flutter create" settings editor Add tests for "flutter create" settings editor Apr 29, 2026
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