Skip to content

Added an option to deploy all files in the test source location#391

Merged
mayankbansal018 merged 9 commits into
microsoft:masterfrom
cltshivash:master
Oct 31, 2018
Merged

Added an option to deploy all files in the test source location#391
mayankbansal018 merged 9 commits into
microsoft:masterfrom
cltshivash:master

Conversation

@cltshivash

@cltshivash cltshivash commented Mar 27, 2018

Copy link
Copy Markdown
Contributor

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

…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
@cltshivash cltshivash requested a review from jayaranigarg March 27, 2018 06:35
@smadala smadala removed their assignment May 8, 2018
@singhsarab

Copy link
Copy Markdown
Contributor
            RunDirectories = runDirectories;

This updation is not clear. Do we still need this?


Refers to: src/Adapter/PlatformServices.Desktop/Services/DesktopTestDeployment.cs:158 in a43a940. [](commit_id = a43a940, deletion_comment = False)

Comment thread src/Adapter/PlatformServices.Desktop/Utilities/DeploymentUtility.cs
Comment thread src/Adapter/PlatformServices.Desktop/Utilities/DeploymentUtility.cs

@singhsarab singhsarab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving with few suggestions

//
// <MSTestV2>
// <DeploymentEnabled>true</DeploymentEnabled>
// <DeployTestSourceDependencies>true</DeployTestSourceDependencies>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice 👍


if (sourcePath.IndexOfAny(System.IO.Path.GetInvalidPathChars()) != -1 ||
relativeOutputDirectory.IndexOfAny(System.IO.Path.GetInvalidPathChars()) != -1)
if (sourcePath.IndexOfAny(Path.GetInvalidPathChars()) != -1 ||

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Member

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.

Comment thread src/Adapter/PlatformServices.Desktop/Utilities/DeploymentUtility.cs Outdated
Comment thread src/Adapter/PlatformServices.Desktop/Utilities/DeploymentUtility.cs
@jayaranigarg

jayaranigarg commented May 11, 2018

Copy link
Copy Markdown
Member

Please put up an RFC in testfx-docs describing the usage of this 'DeployTestSourceDependencies' flag and link that to this PR.

@jayaranigarg

Copy link
Copy Markdown
Member

@cltshivash : Please complete this PR.

@jayaranigarg

Copy link
Copy Markdown
Member

@cltshivash : Can we get this PR in? It will solve this issue #490 as well.

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.

5 participants