Skip to content

refactor(@angular/build): provide karma runner for unit-test builder #30169

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
merged 1 commit into from
Apr 30, 2025

Conversation

clydin
Copy link
Member

@clydin clydin commented Apr 24, 2025

The runner option for the unit-test builder can now be set to karma. This leverages the existing karma builder for test execution. The karma build related options are derived from the provided buildTarget option instead of being manually specified within the unit-test builder. In other areas, the test execution is the same with the exceptions of specifying either a custom configuration file and/or a custom main file.

NOTE: The unit-test builder is considered experimental. Direct usage of the karma builder is currently recommended for production applications.

The `runner` option for the `unit-test` builder can now be set to `karma`.
This leverages the existing `karma` builder for test execution. The `karma`
build related options are derived from the provided `buildTarget` option
instead of being manually specified within the `unit-test` builder. In
other areas, the test execution is the same with the exceptions of specifying
either a custom configuration file and/or a custom main file.
@clydin clydin added state: WIP target: major This PR is targeted for the next major release labels Apr 24, 2025
@clydin clydin removed the state: WIP label Apr 28, 2025
@clydin clydin marked this pull request as ready for review April 29, 2025 16:00
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Apr 30, 2025
@clydin clydin merged commit 6200e94 into angular:main Apr 30, 2025
35 checks passed
@clydin clydin deleted the unit-test/karma-bridge branch April 30, 2025 11:03
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 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