-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
LCOV reporter changed from Absolute file paths to Relative #9773
Comments
It seems that for version 25.2.0, we need to configure the projectRoot to fix the relative path.
|
Interesting... Did any Istanbul dependencies change during your upgrade? I didn't think any changes we made would affect this |
Yes, I did further analises and it seems it stop working after 24.9.0. The version 25.1.0 does have some updates to istanbul dependencies. |
Right. That's expected. Essentially istanbuljs/istanbuljs#529 and the linked PR to jest which allows you to set |
@jcdesousa Thank's a lot. Works fine! |
After setting to
The path is
It is still not an absolute path |
@randing89 that's even a wrong path. |
After upgrading to Jest 27.0.6, still facing the SF path issue in coverage reports. without coverageReporters: SF:app1/common/App.js with coverageReporters SF:Users//git/project/webapp/app1/common/App.js with coverageReporters SF:..app1/common/App.js Jest-config present in webapp folder Am expecting the following: Absolute SF Path: /Users//git/project/webapp/app1/common/App.js Right now using Is there any workaround to fix it up in jest config level? |
Same problem, I am expecting absolute path. Anyone made any progress on this (except for the sed usage) |
I have simple project where I use jest v29.4.3. I run When I run the
When I run the same project in GitHub Action in
From <file name="index.js" path="/home/runner/work/generator-license/generator-license/app/index.js"> |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
#9742 💥 Regression Report
After upgrading to the 25.2.7, we saw that our reported lcov.info file is not showing the absolute file paths anymore. This is causing a problem when reporting to sonarQube.
Before on 24.8.0:
SF:/Users/jose.sousa/git/project/webapp/common/App.js
Now on 25.2.7:
SF:common/App.js
Last working version
24.9.0
Stopped working in version:
25.1.0
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: