Skip to content
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

Convert 'SF' in the 'lcov.info' file to a relative path #491

Closed
guibwl opened this issue Oct 17, 2019 · 1 comment
Closed

Convert 'SF' in the 'lcov.info' file to a relative path #491

guibwl opened this issue Oct 17, 2019 · 1 comment

Comments

@guibwl
Copy link

guibwl commented Oct 17, 2019

I need to generate 'lcov.info' local before upload it to the server for 'sornaQube',
But 'SF' in 'lcov.info' is absolute path, which is not match the server files path;

Example :

  • 'lcov.info' file is generated on my computer:
TN:
SF:/Users/myUsersName/path/__test__/testFile.js
FN:19,uninstallScripts
FN:22,(anonymous_1)
FN:26,(anonymous_2)
...
  • Test file path on the server should be:
SF:/root/server/path/__test__/testFile.js

Is there anywhere can configure the 'SF' ?
Thanks!

@coreyfarrell
Copy link
Member

#492 implemented relative paths for lcov reports, by default process.cwd() or the project directory for projects that use nyc. This feature is released to istanbul-reports 3.0.0 and nyc 15.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants