Skip to content

feat(@angular/build): add quiet option to suppress build noise in unit tests#33028

Open
clydin wants to merge 1 commit intoangular:mainfrom
clydin:feat/unit-test-quiet
Open

feat(@angular/build): add quiet option to suppress build noise in unit tests#33028
clydin wants to merge 1 commit intoangular:mainfrom
clydin:feat/unit-test-quiet

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Apr 21, 2026

The unit-test builder currently triggers a rebuild of the application on each test run in watch mode. This causes the application builder to print a full list of built files on every rebuild, which can be quite noisy and not useful during test development.

This change introduces a quiet option to the @angular/build:unit-test builder. When enabled, it suppresses the build summary and stats table from the application builder. The option defaults to true when running locally to provide a cleaner development experience, and defaults to false when running in a CI environment to ensure detailed logs are available for troubleshooting.

@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: @angular/build labels Apr 21, 2026
@clydin clydin added the target: minor This PR is targeted for the next minor release label Apr 21, 2026
@clydin clydin force-pushed the feat/unit-test-quiet branch from 947f873 to d60d49e Compare April 21, 2026 17:29
…t tests

The unit-test builder currently triggers a rebuild of the application on each test run in watch mode. This causes the application builder to print a full list of built files on every rebuild, which can be quite noisy and not useful during test development.

This change introduces a `quiet` option to the `@angular/build:unit-test` builder. When enabled, it suppresses the build summary and stats table from the application builder. The option defaults to `true` when running locally to provide a cleaner development experience, and defaults to `false` when running in a CI environment to ensure detailed logs are available for troubleshooting.
@clydin clydin force-pushed the feat/unit-test-quiet branch from d60d49e to 35cbf03 Compare April 21, 2026 17:47
@clydin clydin marked this pull request as ready for review April 21, 2026 17:59
@clydin clydin added action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 21, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new quiet option to the Angular build and unit-test builders, allowing users to suppress build summary and stats table output. The option defaults to true in local environments and false in CI environments to maintain visibility during automated builds. The changes include updates to the public API, option normalization logic, and the addition of comprehensive unit tests to verify the behavior across different environments. I have no feedback to provide.

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

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: @angular/build detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vitest with runner config outputs entire build chunks after coverage - allow hiding/minimizing chunk result

1 participant