Improved path handling, reported filenames are converted to src dir relative paths #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
thats the 1st in a series of 3 pull request I tried to separate functionality a bit.
This one changes the treatment of the "filename" attributes in the scoverage report files. The report
files seem to vary regarding the filename format, I encountered 3 different formats
The PR adds a path cleanup step, that aligns the filenames to a source file tree and converts them all to paths relative to the source directory. This allows to adapt the code in the sensor such that files are not longer searched with **/filepath.
Additionally the test cases are not longer dependent on Unix, but run equally well on Windows.
Some Remarks:
more tests might be a good idea
an InputDir and to get that you need a resolvable filename, which sadly does not work over
FilePredicates (or I could at least not figure out how)
ok hope you find time to look through it
Best Michael