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

Can't send coverage data to coveralls.io #244

Open
koonfoon opened this issue Mar 9, 2021 · 1 comment
Open

Can't send coverage data to coveralls.io #244

koonfoon opened this issue Mar 9, 2021 · 1 comment

Comments

@koonfoon
Copy link

koonfoon commented Mar 9, 2021

I was tying to create my own project generator. Everything works fine except for the sending data to coveralls.io.
That is, executing jest --coverage always produced a lcov.info with value of absoulte path 'SF:../../home/travis/build/koonfoon/generator-vscode-typescript-jest/generators/app/index.js\n' at the beginning of the file. Which I think wouldn't work with coveralls.io
And I mean always, even in Travis CI (here is the build, executed jest with verbose option). Here is my GitHub repo. How to make it produce relative path instead.
Please advise. Thank you.

@jozefizso
Copy link
Contributor

Hi @koonfoon, the path in the lcov.info file must be fixed by removing the ../.. from the begging of the path.

sed -i -E 's/SF:(\.\.\/\.\.(.+))/SF:\2/' coverage/lcov.info

https://github.com/jozefizso/generator-license/blob/v5.7.1/.github/workflows/build.yml#L34-L36

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