Repository navigation
Add --no-progress and --no-ansi
#3550
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b74e67d
Add no-progress and no-ansi options
nohwnd 9ff9217
Merge branch 'main' into no-progress-no-ansi
nohwnd 8b85afb
REvert sleep
nohwnd 5ad331d
Apply suggestions from code review
nohwnd cd2551f
Merge branch 'main' into no-progress-no-ansi
Evangelink e851e9c
Merge branch 'main' into no-progress-no-ansi
nohwnd 2d0b8d2
Don't force matching namespace to folder structure
nohwnd 30348ca
Merge branch 'dont-match-namespace' into no-progress-no-ansi
nohwnd 897db6c
Merge branch 'main' into no-progress-no-ansi
nohwnd dd13eb7
Fix help info tests
nohwnd e35e73c
Fix acceptance tests
nohwnd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
45 changes: 45 additions & 0 deletions
45
....Testing.Platform/OutputDevice/Terminal/TerminalTestReporterCommandLineOptionsProvider.cs
This file contains hidden or 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,45 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
|
||
| using Microsoft.Testing.Platform.CommandLine; | ||
| using Microsoft.Testing.Platform.Extensions; | ||
| using Microsoft.Testing.Platform.Extensions.CommandLine; | ||
| using Microsoft.Testing.Platform.Helpers; | ||
| using Microsoft.Testing.Platform.Resources; | ||
|
|
||
| namespace Microsoft.Testing.Platform.OutputDevice.Terminal; | ||
|
|
||
| internal class TerminalTestReporterCommandLineOptionsProvider : ICommandLineOptionsProvider | ||
|
nohwnd marked this conversation as resolved.
Resolved
|
||
| { | ||
| public const string NoProgressOption = "no-progress"; | ||
| public const string NoAnsiOption = "no-ansi"; | ||
|
|
||
| /// <inheritdoc /> | ||
| public string Uid { get; } = nameof(TerminalTestReporterCommandLineOptionsProvider); | ||
|
|
||
| /// <inheritdoc /> | ||
| public string Version { get; } = AppVersion.DefaultSemVer; | ||
|
|
||
| /// <inheritdoc /> | ||
| public string DisplayName { get; } = PlatformResources.TerminalTestReporterDisplayName; | ||
|
|
||
| /// <inheritdoc /> | ||
| public string Description { get; } = PlatformResources.TerminalTestReporterDescription; | ||
|
|
||
| /// <inheritdoc /> | ||
| public Task<bool> IsEnabledAsync() => Task.FromResult(true); | ||
|
|
||
| public IReadOnlyCollection<CommandLineOption> GetCommandLineOptions() | ||
| => | ||
| [ | ||
| new(NoProgressOption, PlatformResources.TerminalNoProgressOptionDescription, ArgumentArity.Zero, false), | ||
| new(NoAnsiOption, PlatformResources.TerminalNoAnsiOptionDescription, ArgumentArity.Zero, false) | ||
| ]; | ||
|
|
||
| public Task<ValidationResult> ValidateOptionArgumentsAsync(CommandLineOption commandOption, string[] arguments) | ||
| => ValidationResult.ValidTask; | ||
|
|
||
| public Task<ValidationResult> ValidateCommandLineOptionsAsync(ICommandLineOptions commandLineOptions) | ||
| => // No problem found | ||
| ValidationResult.ValidTask; | ||
| } | ||
This file contains hidden or 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
36 changes: 36 additions & 0 deletions
36
src/Platform/Microsoft.Testing.Platform/Resources/PlatformResources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.