-
Notifications
You must be signed in to change notification settings - Fork 255
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
Added an option to deploy all files in the test source location #391
Conversation
…dlls by default. This option will be on by default. It can turned off in which case deployment would just deploy the test source location and skip the test results folder if the test results folder is within it. Added UTs and E2E tests for the change
test/UnitTests/PlatformServices.Desktop.Unit.Tests/Utilities/DeploymentUtilityTests.cs
Outdated
Show resolved
Hide resolved
test/UnitTests/PlatformServices.Desktop.Unit.Tests/Utilities/DeploymentUtilityTests.cs
Outdated
Show resolved
Hide resolved
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.
Approving with few suggestions
@@ -116,6 +57,7 @@ public static MSTestAdapterSettings ToSettings(XmlReader reader) | |||
// | |||
// <MSTestV2> | |||
// <DeploymentEnabled>true</DeploymentEnabled> | |||
// <DeployTestSourceDependencies>true</DeployTestSourceDependencies> |
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.
Nice 👍
@@ -91,14 +92,14 @@ internal bool IsValidDeploymentItem(string sourcePath, string relativeOutputDire | |||
return false; | |||
} | |||
|
|||
if (sourcePath.IndexOfAny(System.IO.Path.GetInvalidPathChars()) != -1 || | |||
relativeOutputDirectory.IndexOfAny(System.IO.Path.GetInvalidPathChars()) != -1) | |||
if (sourcePath.IndexOfAny(Path.GetInvalidPathChars()) != -1 || |
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.
👍
using System.Threading.Tasks; | ||
using Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Deployment; | ||
|
||
internal class DeploymentResult |
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.
Adding comments summarizing purpose of this class would be good.
src/Adapter/PlatformServices.Desktop/Utilities/DeploymentUtility.cs
Outdated
Show resolved
Hide resolved
Please put up an RFC in testfx-docs describing the usage of this 'DeployTestSourceDependencies' flag and link that to this PR. |
@cltshivash : Please complete this PR. |
@cltshivash : Can we get this PR in? It will solve this issue #490 as well. |
Added an option to deploy the test source dependencies and satellite dlls by default (DeployTestSourceDependencies) in addition to the content of the test source directory (bin/debug of the test dll). This option will be on by default for compat reasons.
It can be turned off in which case deployment would only deploy the files from the test source location.
Added UTs and E2E tests for the change