Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Sep 12, 2025

This change introduces a new filter option to the unit-test builder. This allows users to specify a regular expression to match against test description names, providing a way to run a subset of tests.

The option is implemented for the Vitest runner by passing the value to the testNamePattern configuration option. For the Karma runner, the client args --grep option is used.

@clydin clydin added the target: major This PR is targeted for the next major release label Sep 12, 2025
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @angular/build labels Sep 12, 2025
@clydin clydin changed the title feat(@angular/build): add 'filter' option to unit-test builder feat(@angular/build): add filter option to unit-test builder Sep 12, 2025
@clydin clydin force-pushed the unit-test/filter-option branch from ee3092c to d411403 Compare September 12, 2025 23:54
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 12, 2025
@clydin clydin requested a review from alan-agius4 September 13, 2025 13:23
@clydin clydin force-pushed the unit-test/filter-option branch 3 times, most recently from e43ed90 to 9c7d4cb Compare September 15, 2025 16:54
@alan-agius4 alan-agius4 added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 16, 2025
@clydin clydin force-pushed the unit-test/filter-option branch from 9c7d4cb to 5dda439 Compare September 16, 2025 11:08
@clydin clydin added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Sep 16, 2025
This change introduces a new `filter` option to the `unit-test` builder. This allows users to specify a regular expression to match against test description names, providing a way to run a subset of tests.

The option is implemented for the Vitest runner by passing the value to the `testNamePattern` configuration option.
For the Karma runner, the client args `--grep` option is used.
@clydin clydin force-pushed the unit-test/filter-option branch from 5dda439 to 7ab1ce0 Compare September 16, 2025 11:23
@clydin clydin merged commit a908bf3 into angular:main Sep 16, 2025
31 checks passed
@clydin clydin deleted the unit-test/filter-option branch September 16, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: @angular/build detected: feature PR contains a feature commit target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants