feat(test): exclude test files from the optimized bundle - #1726
Open
marcossevilla wants to merge 3 commits into
Open
feat(test): exclude test files from the optimized bundle#1726marcossevilla wants to merge 3 commits into
marcossevilla wants to merge 3 commits into
Conversation
marcossevilla
marked this pull request as draft
September 9, 2026 15:54
2 tasks
marcossevilla
marked this pull request as ready for review
September 10, 2026 14:57
erickzanardo
previously approved these changes
Sep 10, 2026
Adds `optimization.exclude` to the `test` and `dart.test` sections of `very_good.yaml`, plus a repeatable `--exclude-optimization` option on `very_good test` and `very_good dart test`. Matching test files are left out of the generated `.test_optimizer.dart` and handed to the test runner as their own targets, which also restores file-level `@Tags` handling for them. `optimization` now accepts a map with `enabled` and `exclude`. The previous boolean form is shorthand for `enabled`, so `optimization: false` keeps working. The optimized entrypoint is no longer passed to the runner once every test has been excluded from it, unless there is nothing else left to run. Closes #1713 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
marcossevilla
dismissed stale reviews from ryzizub and erickzanardo
via
September 10, 2026 15:58
16b19a6
marcossevilla
force-pushed
the
session/dramatic-oriole-kg0j
branch
from
September 10, 2026 15:58
64d6601 to
16b19a6
Compare
marcossevilla
added this pull request to stack #1730
September 10, 2026 15:58
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.
Adds
optimization.excludeto thetestanddart.testsections ofvery_good.yaml, plus a repeatable--exclude-optimizationoption onvery_good testandvery_good dart test. Matching test files are left outof the generated
.test_optimizer.dartand handed to the test runner astheir own targets, which also restores file-level
@Tagshandling for them.optimizationnow accepts a map withenabledandexclude. The previousboolean form is shorthand for
enabled, sooptimization: falsekeepsworking.
The optimized entrypoint is no longer passed to the runner once every test
has been excluded from it, unless there is nothing else left to run.
Closes #1713