-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added an option to deploy all files in the test source location (#391)
* Added an option to deploy the test source dependencies and satellite 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 * Removed couple of redundant tests * Minor review comment updated. * Removed and unused file
- Loading branch information
1 parent
2be8110
commit e0fb2a8
Showing
21 changed files
with
524 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/Adapter/PlatformServices.Desktop/Services/MSTestSettingsProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices | ||
{ | ||
using System.Collections.Generic; | ||
using System.Xml; | ||
using Microsoft.VisualStudio.TestPlatform.ObjectModel; | ||
|
||
using ISettingsProvider = Interface.ISettingsProvider; | ||
|
||
/// <summary> | ||
/// Class to read settings from the runsettings xml for the desktop. | ||
/// </summary> | ||
public class MSTestSettingsProvider : ISettingsProvider | ||
{ | ||
/// <summary> | ||
/// Member variable for Adapter settings | ||
/// </summary> | ||
private static MSTestAdapterSettings settings; | ||
|
||
/// <summary> | ||
/// Gets settings provided to the adapter. | ||
/// </summary> | ||
public static MSTestAdapterSettings Settings | ||
{ | ||
get | ||
{ | ||
if (settings == null) | ||
{ | ||
settings = new MSTestAdapterSettings(); | ||
} | ||
|
||
return settings; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Reset the settings to its default. | ||
/// </summary> | ||
public static void Reset() | ||
{ | ||
settings = null; | ||
} | ||
|
||
/// <summary> | ||
/// Load the settings from the reader. | ||
/// </summary> | ||
/// <param name="reader">Reader to load the settings from.</param> | ||
public void Load(XmlReader reader) | ||
{ | ||
ValidateArg.NotNull(reader, "reader"); | ||
settings = MSTestAdapterSettings.ToSettings(reader); | ||
} | ||
|
||
public IDictionary<string, object> GetProperties(string source) | ||
{ | ||
return TestDeployment.GetDeploymentInformation(source); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.