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

Only strip leading slashes from filenames when generating Cobertura reports #50

Merged
merged 1 commit into from Mar 5, 2013

Conversation

robinjmurphy
Copy link
Contributor

As described in issue #39, the leading slash in filenames is removed to ensure compatibility with Jenkins.

This works fine in web server mode when there is always a leading slash present, but if you are converting a JSON coverage file that has been generated in file system mode (as per issue #48) then there are no leading slashes and the initial character of the filename is removed blindly.

This patch will only remove the initial character in a filename if it's a slash.

tntim96 added a commit that referenced this pull request Mar 5, 2013
Only strip leading slashes from filenames when generating Cobertura reports
@tntim96 tntim96 merged commit adf6fd0 into tntim96:master Mar 5, 2013
@robinjmurphy
Copy link
Contributor Author

Brilliant, thank you.

@ghost ghost assigned tntim96 Mar 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants