Skip to content

Add an "auto" option for dart.testInvocatationMode that selects intelligently - #6191

Merged
DanTup merged 2 commits into
masterfrom
run-tests-by-line-by-default
Sep 22, 2026
Merged

DanTup merged 2 commits into
masterfrom
run-tests-by-line-by-default

Conversation

@DanTup

@DanTup DanTup commented Sep 22, 2026

Copy link
Copy Markdown
Member

This adds an "auto" mode that is like "line" but will automatically fall back to "name" if:

  • the file is unsaved
  • the test name does not contain $

Fixes #5716

…ligently

This adds an "auto" mode that is like "line" but will automatically fall back to "name" if:

- the file is unsaved
- the test name does not contain $

Fixes #5716
@DanTup DanTup added this to the v3.144.0 milestone Sep 22, 2026
@DanTup DanTup added is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix. in debugging Relates to the debug adapter or process of running debug sessions labels Sep 22, 2026
@codecov

codecov Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.76%. Comparing base (64ede50) to head (8917d79).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6191      +/-   ##
==========================================
- Coverage   70.78%   70.76%   -0.02%     
==========================================
  Files         170      170              
  Lines       13182    13191       +9     
  Branches     2655     2657       +2     
==========================================
+ Hits         9331     9335       +4     
- Misses       3327     3331       +4     
- Partials      524      525       +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.

@DanTup
DanTup added this pull request to stack #6193 September 22, 2026 16:17
@DanTup
DanTup requested a lite review from Copilot September 22, 2026 16:18

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.

Copilot review overview

🔵 Needs a closer look

The configuration and package defaults remain "name" instead of the requested "auto" default.

Review effort: Lite
Findings: None

What changed in this PR

Adds an auto Dart test invocation mode that selects line-based execution for saved dynamic tests and name-based execution otherwise.

Changes:

  • Adds and documents the auto configuration option.
  • Implements automatic invocation selection.
  • Adds integration tests for the behavior.
File Summary
src/​test/​dart_debug/​dart_test.test.ts Tests automatic invocation behavior.
src/​extension/​config.ts Adds the auto configuration mode.
src/​extension/​commands/​test.ts Implements automatic mode selection.
package.json Exposes and documents the setting option.

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

@DanTup
DanTup merged commit 58e3b1a into master Sep 22, 2026
24 checks passed
@DanTup
DanTup deleted the run-tests-by-line-by-default branch September 22, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in debugging Relates to the debug adapter or process of running debug sessions is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an "auto" mode for dart.testInvocationMode that tries to pick the best mode automatically

2 participants