-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Conversation
There was a problem hiding this 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
Tasks/VsTest/taskinputparser.ts
Outdated
@@ -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' |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Moved
Tasks/VsTest/taskinputparser.ts
Outdated
@@ -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)) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Tasks/VsTest/vstest.ts
Outdated
} | ||
|
||
export {isNullOrWhitespace}; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will discuss in scrum
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