Skip to content

Document test discovery, test model, and Test Explorer (docs/test-explorer.md) - #6501

Open
DanTupBot wants to merge 1 commit into
Dart-Code:masterfrom
DanTupBot:docs-test-explorer
Open

DanTupBot wants to merge 1 commit into
Dart-Code:masterfrom
DanTupBot:docs-test-explorer

Conversation

@DanTupBot

Copy link
Copy Markdown
Collaborator

Part of #6490.

Fixes #6493.

Summary

  • Added docs/test-explorer.md documenting the high-level design, behavioral contracts, and key decisions for test discovery (TestDiscoverer), DAP test event handling (TestSessionCoordinator), the canonical in-memory test tree (TestModel), and Test Explorer / coverage integration (VsCodeTestController), including links to the implementing files:
    • Architecture, component responsibilities, tree hierarchy, workspace-folder elision, labels, node identity vs. navigation URIs, and runnability tags.
    • Static discovery from LSP Outline (lazy resolution, scoping to top-level main(), avoiding static children inside dynamically-named groups) vs. dynamic package:test JSON events, node reuse/re-parenting, live range tracking, and whole-suite vs. filtered pruning.
    • Synthetic nodes ((loading), (setUpAll), (tearDownAll)), exclusion from X/Y passed counts, skipped-test handling (dart.showSkippedTests), and parent/suite status rollup.
    • Execution paths, debug-session ownership and cleanup on termination, and LCOV coverage collection/parsing.
  • Indexed docs/test-explorer.md in docs/README.md.

@DanTupBot DanTupBot added in docs / website Relates to documentation, including the Dart Code website in testing Relates to test execution of Dart/Flutter tests for end users non-functional Something that doesn't affect users and should be excluded from release notes labels Nov 27, 2026
@DanTupBot
DanTupBot requested a review from DanTup November 27, 2026 18:10
@DanTupBot DanTupBot added this to the v3.150.0 milestone Nov 27, 2026
@DanTup DanTup added is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix. and removed non-functional Something that doesn't affect users and should be excluded from release notes labels Nov 27, 2026
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.87%. Comparing base (f133e2d) to head (2a28a33).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6501      +/-   ##
==========================================
- Coverage   81.97%   81.87%   -0.10%     
==========================================
  Files         173      173              
  Lines       14034    14034              
  Branches     2879     2879              
==========================================
- Hits        11504    11491      -13     
- Misses       2065     2078      +13     
  Partials      465      465              

☔ 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in docs / website Relates to documentation, including the Dart Code website in testing Relates to test execution of Dart/Flutter tests for end users 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.

Document test discovery, test model, and Test Explorer (docs/test-explorer.md)

2 participants