In one of our projects in Typescript we are always having code coverage 0.0%.
Looking to the pipeline logs I found this warning:
WARN: Could not resolve 55 file paths in [/builds/zqyy6WLr/0/mnk-group/mnk.be/devops/scrts-twl-test/functions/coverage/lcov.info]
Here it’s the full output in verbose mode. pipeline-log.txt (206.0 KB)
I found topics in this community alerting to issues regarding relative or absolute paths in lcov.info file, we tested both, but in this case nothing worked, in both cases we have the same error.
I notice you’re setting sonar.projectBaseDir. That’s not typically needed and could(???) be throwing off the path question. Can you analyze without it?
Thanks for the followup. I think this requires language-specific expertise, so I’ve added the typescript tag to draw that attention. Hopefully they’ll be along soon.
It’s a case-by-case suggestion. Here, we got a user apparently facing the same issue as the author of this thread. The problem was initially reported in early March 2022 without any response since my last message. Therefore, there is no guarantee that it’s the same problem since quite some time has passed.
b) is there a new thread?
Not that I am aware of.
c) is there a solution, we lost coverage reports which is very bad
Before getting to the solution, we first need to understand the problem. This is why I am suggesting creating a new thread, asking to share analysis logs and contextual information that would help investigate what is going wrong.