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

TestConverter: added check for attachment path - if it starts with file:// scheme #527

Merged
merged 2 commits into from
Jul 7, 2018
Merged

TestConverter: added check for attachment path - if it starts with file:// scheme #527

merged 2 commits into from
Jul 7, 2018

Conversation

kirill-d-lappo
Copy link
Contributor

The PR fixes the problem from issue 494.

I added constant fileUriScheme into helper method AttachmentSet ParseAttachments(XmlNode resultNode).
Then I added check for each path in attachments.
When path is not empty or not already started with fileUriScheme, fileUriScheme value is added at the beginning of the original path.

@OsirisTerje
Copy link
Member

LGTM.
Would be nice to see a unit test covering this though.

@kirill-d-lappo
Copy link
Contributor Author

kirill-d-lappo commented Jul 7, 2018

@OsirisTerje I've added two unit tests which check that correct amount of test attachments was converted and that all pathes start with the only "file://" value. I guess it's enough for that part.

@OsirisTerje
Copy link
Member

Superb! Thanks!

@OsirisTerje OsirisTerje merged commit 28b9b85 into nunit:master Jul 7, 2018
@kirill-d-lappo kirill-d-lappo deleted the feature/issue-494-add-attachment-fails-on-linux-environemnt branch July 7, 2018 21:14
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.

2 participants