-
Notifications
You must be signed in to change notification settings - Fork 12k
Coverage is undefined if sourceRoot is not set #23591
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
Labels
area: @angular-devkit/build-angular
devkit/build-angular:karma
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
Comments
alan-agius4
added a commit
to alan-agius4/angular-cli
that referenced
this issue
Jul 18, 2022
…sourceRoot is missing during coverage With this change we fallback to use the projectRoot when the sourceRoot is missing for files to be included in coverge. Closes: angular#23591
alan-agius4
added a commit
to alan-agius4/angular-cli
that referenced
this issue
Jul 18, 2022
…sourceRoot is missing during coverage With this change we fallback to use the projectRoot when the sourceRoot is missing for files to be included in coverage. Closes: angular#23591
clydin
pushed a commit
that referenced
this issue
Jul 18, 2022
…sourceRoot is missing during coverage With this change we fallback to use the projectRoot when the sourceRoot is missing for files to be included in coverage. Closes: #23591
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: @angular-devkit/build-angular
devkit/build-angular:karma
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, coverage was generated properly even with
sourceRoot
unset in angular 12.Description
The
@angular-devkit/build-angular
builder fails to generate coverage ifsourceRoot
is not set. There's no error or warning linking this to the missingsourceRoot
.Possibly related to #22161, though the lack of a reproduction in that issue makes it unclear if it really is the same.
🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: