-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code formatting, and localization typos fixed.
- Loading branch information
Showing
18 changed files
with
406 additions
and
422 deletions.
There are no files selected for viewing
75 changes: 37 additions & 38 deletions
75
src/Microsoft.TestPlatform.ObjectModel/TestAdapterLoadingStrategy.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 |
---|---|---|
@@ -1,47 +1,46 @@ | ||
// 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.ObjectModel; | ||
|
||
using System; | ||
|
||
namespace Microsoft.VisualStudio.TestPlatform.ObjectModel | ||
/// <summary> | ||
/// Represents a loading strategy | ||
/// </summary> | ||
[Flags] | ||
internal enum TestAdapterLoadingStrategy | ||
{ | ||
/// <summary> | ||
/// Represents a loading strategy | ||
/// A strategy not defined, Test Platform will load adapters normally. | ||
/// </summary> | ||
Default = 0b0000_0000_0000_0000, | ||
|
||
/// <summary> | ||
/// Test Platform will only load adapters specified by /TestAdapterPath (or RunConfiguration.TestAdaptersPaths node). | ||
/// If a specific adapter path is provided, adapter will be loaded; if a directory path is provided adapters directly in that folder will be loaded. | ||
/// If no adapter path is specified, test run will fail. | ||
/// This will imply /InIsolation switch and force the tests to be run in an isolated process. | ||
/// </summary> | ||
Explicit = 0b0000_0000_0000_0001, | ||
|
||
/// <summary> | ||
/// Load adapters next to source. | ||
/// </summary> | ||
NextToSource = 0b0000_0000_0000_0010, | ||
|
||
/// <summary> | ||
/// Default runtime providers inside Extensions folder will be included | ||
/// </summary> | ||
DefaultRuntimeProviders = 0b0000_0000_0000_0100, | ||
|
||
/// <summary> | ||
/// Load adapters inside Extensions folder. | ||
/// </summary> | ||
ExtensionsDirectory = 0b0000_0000_0000_1000, | ||
|
||
/// <summary> | ||
/// Directory wide searches will be recursive, this is required to be with with NextToSource or Explicit. | ||
/// </summary> | ||
[Flags] | ||
internal enum TestAdapterLoadingStrategy | ||
{ | ||
/// <summary> | ||
/// A strategy not defined, Test Platform will load adapters normally. | ||
/// </summary> | ||
Default = 0b0000_0000_0000_0000, | ||
|
||
/// <summary> | ||
/// Test Platform will only load adapters specified by /TestAdapterPath (or RunConfiguration.TestAdaptersPaths node). | ||
/// If a specific adapter path is provided, adapter will be loaded; if a directory path is provided adapters directly in that folder will be loaded. | ||
/// If no adapter path is specified, test run will fail. | ||
/// This will imply /InIsolation switch and force the tests to be run in an isolated process. | ||
/// </summary> | ||
Explicit = 0b0000_0000_0000_0001, | ||
|
||
/// <summary> | ||
/// Load adapters next to source. | ||
/// </summary> | ||
NextToSource = 0b0000_0000_0000_0010, | ||
|
||
/// <summary> | ||
/// Default runtime providers inside Extensions folder will be included | ||
/// </summary> | ||
DefaultRuntimeProviders = 0b0000_0000_0000_0100, | ||
|
||
/// <summary> | ||
/// Load adapters inside Extensions folder. | ||
/// </summary> | ||
ExtensionsDirectory = 0b0000_0000_0000_1000, | ||
|
||
/// <summary> | ||
/// Directory wide searches will be recursive, this is required to be with with NextToSource or Explicit. | ||
/// </summary> | ||
Recursive = 0b0001_0000_0000_0000, | ||
} | ||
Recursive = 0b0001_0000_0000_0000, | ||
} |
Oops, something went wrong.