-
Notifications
You must be signed in to change notification settings - Fork 238
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
Added primitive support for llvm-cov -path-equivalence. #547
base: master
Are you sure you want to change the base?
Conversation
lib/slather/coverage_info.rb
Outdated
source_file_pathname.realpath.relative_path_from(Pathname("./").realpath) | ||
test_path=source_file_pathname | ||
if ENV["COVERAGE_PATH_EQUIVALENCE"] | ||
test_path=Pathname("." + "#{source_file_pathname}".delete_prefix(ENV["COVERAGE_PATH_EQUIVALENCE"].delete_suffix(",."))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only supports COVERAGE_PATH_EQUIVALENCE=XXX,.
, i.e. relocation from a given source root (XXX) to the current directory.
1b102c1
to
0626201
Compare
0626201
to
be06263
Compare
i think this might address #531? seems like a similar issue where the source file absolute paths are different at the time slather is run than when the tests were run. |
LGTM |
This illustrates the idea of the functionality that we miss. The corresponding issue: #548.