Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor(@angular/build): decouple test discovery from runner execution #31185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
clydin merged 1 commit into angular:main from clydin:unit-test/dup-test-discovery
Sep 12, 2025

Conversation

Copy link
Member

@clydin clydin commented Sep 11, 2025

This commit refactors the unit test builder to centralize test file discovery, preventing redundant operations in the test runner's execution phase.

The TestRunner API has been updated to pass the test entry point mappings from the initial build options phase directly to the executor. This removes the need for the Vitest executor to re-discover tests, simplifying its logic and adhering to the DRY principle.

The JSDoc comments for the runner API have also been updated to reflect these changes.

This commit refactors the unit test builder to centralize test file discovery, preventing redundant operations in the test runner's execution phase.
The `TestRunner` API has been updated to pass the test entry point mappings from the initial build options phase directly to the executor. This removes the need for the Vitest executor to re-discover tests, simplifying its logic and adhering to the DRY principle.
The JSDoc comments for the runner API have also been updated to reflect these changes.
@clydin clydin added the target: major This PR is targeted for the next major release label Sep 11, 2025
@clydin clydin marked this pull request as ready for review September 11, 2025 17:49
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 11, 2025
@clydin clydin added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 12, 2025
@clydin clydin merged commit b613249 into angular:main Sep 12, 2025
36 checks passed
@clydin clydin deleted the unit-test/dup-test-discovery branch September 12, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@alan-agius4 alan-agius4 alan-agius4 approved these changes

Assignees
No one assigned
Labels
action: merge The PR is ready for merge by the caretaker area: @angular/build target: major This PR is targeted for the next major release
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /