-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Hello, I've been trying to use cov for some time right now, and I successfully could use it when the .info file is generated as the same name as the current openned file in the buffer, in the same directory as well.
I can state that it works and show the faces when using like this, but I got the following scenario:
- I do got a project at /home/user/Workspace/myproject
- I do have a shell variable that resolve to this path named MYPROJECT
- At MYPROJECT i do have a .dir-locals.el configured like this:
((nil . ((mode . cov)
(eval . (progn
(setq cov-coverage-mode t)
(let ((coverage-path (concat (getenv "MYPROJECT")
"/src/foo/bar/TestResults")))
(setq-local cov-lcov-patterns (list (concat coverage-path "/coverage.info")))
(setq cov-lcov-file-name (concat coverage-path "/coverage.info"))
(add-to-list 'cov-coverage-file-paths coverage-path))))))
Every variable that is defined there resolves:
cov-lcov-patterns is a variable defined in ‘cov.el’.
Its value is
("/home/user/Workspace/myproject/src/foo/bar/TestResults/coverage.info")
Local in buffer .dir-locals.el; global value is ("*.info")
cov-lcov-file-name is a variable defined in ‘cov.el’.
Its value is
"/home/user/Workspace/myproject/src/foo/bar/TestResults/coverage.info"
Local in buffer .dir-locals.el; global value is nil
cov-coverage-file-paths is a variable defined in ‘cov.el’.
Its value is
("/home/user/Workspace/myproject/src/foo/bar/TestResults"
"." cov--locate-lcov cov--locate-coveralls cov--locate-clover
cov--locate-coveragepy)
Now when I try to open a file at:
/home/user/Workspace/myproject/src/foo/baz/zaz/
cov dosent seens to be detecting the lcov file that I have defined in .dir-locals.el:
Messages
No coverage data found for /home/user/Workspace/myproject/src/foo/baz/zaz/file.cs.
But if rename coverage.info to file.info and move it to /home/user/Workspace/myproject/src/foo/baz/zaz it works.
Could I receive some help with that?
Also, I like to use emacs with -nw withing the terminal, and I noticed that it only works when using with the GUI emacs.
It is possible to easy hack the cov.el to also show colors when runing with -nw?
Thank you guys very much for the attention!