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

Fix for ..\directory type entries for search folder #4373

Merged
merged 8 commits into from
May 24, 2017

Conversation

prawalagarwal
Copy link
Member

Problem: The root directory path for searching test assemblies does not support ..\directory type entries.
Fix: This fix resolves this issue.
Testing: Unit and Manual

@prawalagarwal prawalagarwal requested a review from RanjanarMS May 23, 2017 08:56
@prawalagarwal prawalagarwal self-assigned this May 23, 2017
Copy link
Member

@RanjanarMS RanjanarMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please take care of the PR comments

@@ -7,6 +7,7 @@ import * as utils from './helpers';
import * as os from 'os';
import * as versionFinder from './versionfinder';
const uuid = require('node-uuid');
import {isNullOrWhitespace} from './vstest'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this to helper?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Moved

@@ -97,12 +98,20 @@ function initTestConfigurations(testConfiguration: models.TestConfigurations) {
tl._writeLine(tl.loc('testSelectorInput', testConfiguration.testSelection));

testConfiguration.testDropLocation = tl.getInput('searchFolder');
if (!isNullOrWhitespace(testConfiguration.testDropLocation))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we assigning some default if it is empty? Or is there any validation for this?

Copy link
Member Author

@prawalagarwal prawalagarwal May 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to change if it is null or empty. These cases are handled when they are actually used.

}

export {isNullOrWhitespace};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to helper class as mentioned above

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

tr.setInput('testAssemblyVer2', '/source/dir/someFile1');
tr.setInput('vstestLocationMethod', 'version');
tr.setInput('vsTestVersion', '14.0');
tr.setInput('pathtoCustomTestAdapters', 'E:/path/to/../customadapters');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add one test case for netwok path in all the scenarios?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will discuss in scrum

@prawalagarwal prawalagarwal merged commit b798d68 into master May 24, 2017
@bryanmacfarlane bryanmacfarlane deleted the users/praga/pathResolve branch January 31, 2018 00:33
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.

4 participants