-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
test_runner: consider --enable-source-maps option in coverage report #55146
Conversation
Review requested:
|
const { result } = coverage; | ||
const sourceMapCache = coverage['source-map-cache']; | ||
if (!sourceMapCache) { | ||
if (!sourceMapEnabled || !sourceMapCache) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use getOptionValue. Instead, check whether the test runners sourceMaps is true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RedYetiDev , do you have any clue on how I could do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my previous implementation for more information
This was tried in #55039, however it couldn't land until a regression was fixed. IMHO this PR will have the same result. Maybe looking into-and fixing?-the regression will help this move along? |
Thanks for letting me know. Let me close this then and look into this regression stuff. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #55146 +/- ##
==========================================
- Coverage 88.25% 88.24% -0.01%
==========================================
Files 651 651
Lines 183915 183900 -15
Branches 35867 35857 -10
==========================================
- Hits 162307 162276 -31
- Misses 14895 14910 +15
- Partials 6713 6714 +1
|
@RedYetiDev I had started some implementation related to non-mapped lines in that same issue. Following @jaydenseric's suggestion it worked.
Is it worth opening a PR or does it also depend on regression? |
Feel free to open a PR. Only --enable-source-maps has the regression |
Ref: #54753