Skip to content
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

'Source directories' parameter is not working #290

Closed
anshii03 opened this issue Oct 21, 2019 · 3 comments
Closed

'Source directories' parameter is not working #290

anshii03 opened this issue Oct 21, 2019 · 3 comments

Comments

@anshii03
Copy link

'Source Directories' is not working while trying to generate report .

This is project repository : https://dev.azure.com/anagarw/abc/_git/coveragetest
After building code and generating cobertura.xml, we moved our source files to srcx folder.

Now when we try to generate report using report generator , it is not able to find source files.

image

Is there anything we can do?

@danielpalme
Copy link
Owner

The parameter Source Directories is not intended to fix invalid file paths.

Fixing the paths can be accomplished by preprocessing the coverage files with a Powershell script.

Example:

(gc "cobertura.xml") | % { $_ -replace "E:\jesttest\src", "E:\jesttest\srcx" } | Out-File "cobertura.xml" -Encoding UTF8

@danielpalme
Copy link
Owner

Could you please try again with release 4.3.2 (should be available in a few minutes)?!

@anshii03
Copy link
Author

Thanks @danielpalme . It worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants