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

Draft
wants to merge 1 commit into
base:main
Choose a base branch
from

Conversation

clydin
Copy link
Member

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.
@clydinclydin added state: WIP target: major This PR is targeted for the next major release labels Apr 24, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: @angular/buildtarget: majorThis PR is targeted for the next major release
1 participant
@clydin
close