Repository navigation
feat(band): support Dart and Flutter in tests and reuse columns - #1530
Open
flipcyde101 wants to merge 1 commit into
Open
flipcyde101 wants to merge 1 commit into
flipcyde101 wants to merge 1 commit into
Conversation
Recognise dart test / dart run test / flutter test commands and parse Dart/Flutter package:test summary counts (taking the last match and handling skipped ~K and 0-passed/-M failure lines). Extract Dart top-level classes, mixins, enums, extensions, extension types, typedefs, and functions in hooks/band/metrics.ts (including GREP_DEFS) and hooks/ponytail-map.js while skipping control-flow keywords, function-typed variable declarations, unnamed extensions, and generated Dart files (*.g.dart, *.freezed.dart, generated/). Fixes DietrichGebert#1529
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1529.
Summary
Adds Dart and Flutter support to the band's Tests and Reuse columns (and mirrors .dart declarations in ponytail-map.js):
dart test,dart run test, andflutter testinTEST_CMD.testCounts(+N: All tests passed!, +N -M: Some tests failed., +N ~K: All tests passed!, and -M: Some tests failed.), taking the last match so streaming/compact reporter progress updates resolve cleanly.*.g.dart/*.freezed.dartfiles.tests/band.test.tsx,tests/map.test.js):(The side note in #1529 regarding claude-fable-5-2 pricing is left out of scope.)
Verification
Tested on Windows 11 (Node.js v24.19.0, Bun 1.4.4):
bun test tests/band.test.tsx(pureboardand metrics unit suites; 15 Claude Code UI harness tests skipped): 17 pass, 0 fail (114 expect() calls)node --test tests/map.test.js: 1/1 passnpm test --prefix pi-extension: 30/30 passnode scripts/check-rule-copies.jsandnode scripts/check-versions.js: PASSgit grep --untracked -nE+parseDefs+defsIn+buildMapverification against a synthetic Dart repository: PASS (0 false positives on bare call sites)node --test tests/*.test.js: 141 pass, 2 Windows POSIX-shell skips, 1 pre-existing environment failure (tests/correctness.test.jspandas one-liner; local Python lacks pandas, identical on main)AI assistance disclosure: Prepared and verified with AI coding and automated review tools.