-
Notifications
You must be signed in to change notification settings - Fork 16
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
Support relative filenames in lcov.info #59
Comments
Relative filenames are supported - as I read the code, despite the comment - , but they are assumed to be relative to the Update: The man page on my system (debian bookworm) says that SF should be absolute, but the current man page in the lcov repo only says file path cloverage already has an issue about this: cloverage/cloverage#323 Would it be possible for you to post (part of) an lcov.info file here? Please try to make it minimal but complete. |
Sure! Here it is for the smallest file:
|
There is really nothing in there to help us find the starting point of the relative paths. |
As I'm using lcov.info generated over Clojure project, I run |
Maybe my question was not clear enough - or I'm not awake enough to understand the answer. |
All I'm using to configure Full configuration in my doom-emacs style is: (use-package! cov
:demand t
:defer t
:init
(setq cov-coverage-mode t)
(setq cov-fringe-symbol 'empty-line)
(custom-set-faces
'(cov-coverage-not-run-face ((t (:foreground "#900000"))))
'(cov-coverage-run-face ((t (:foreground "#00BE00"))))
'(cov-none-face ((t (:foreground "#0000F0")))))
:config
(setq cov-lcov-file-name (concat (clojure-project-dir) "target/coverage/lcov.info"))
:hook
(cider-mode . cov-mode)) |
The cov.el expects the lcov.info with absolute file paths in SF field:
cov/cov.el
Line 402 in 42bf07c
At least one tool (https://github.com/cloverage/cloverage) generates lcov files with file names relative to the project path, which makes it impossible to match with cov.el workflow. I've made quick POC to enable this flow: vlnn@9d1836a . This is, of course, very limited to my needs only, without configuration and relying on specific clojure mode to find the project's root.
Is there a possibility to enable proper configuration/functionality for relative filenames in lcov.info?
The text was updated successfully, but these errors were encountered: