Skip to content

Commit 6d7adfb

Browse files
committed
Don't prefix trx report options unnecessarily
Since the user may not even be aware that there's a standalone tool called trx that does the same test reporting.
1 parent c63053d commit 6d7adfb

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/dotnet-retest/RetestCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,31 +216,31 @@ public class RetestSettings : CommandSettings
216216
#region trx
217217

218218
[Description("Include test output in report")]
219-
[CommandOption("--trx-output")]
219+
[CommandOption("--output")]
220220
[DefaultValue(false)]
221221
public bool Output { get; init; }
222222

223223
/// <summary>
224224
/// Whether to include skipped tests in the output.
225225
/// </summary>
226226
[Description("Include skipped tests in report")]
227-
[CommandOption("--trx-skipped")]
227+
[CommandOption("--skipped")]
228228
[DefaultValue(true)]
229229
public bool Skipped { get; init; } = true;
230230

231231
/// <summary>
232232
/// Report as GitHub PR comment.
233233
/// </summary>
234234
[Description("Report as GitHub PR comment")]
235-
[CommandOption("--trx-gh-comment")]
235+
[CommandOption("--gh-comment")]
236236
[DefaultValue(true)]
237237
public bool GitHubComment { get; init; } = true;
238238

239239
/// <summary>
240240
/// Report as GitHub PR comment.
241241
/// </summary>
242242
[Description("Report as GitHub step summary")]
243-
[CommandOption("--trx-gh-summary")]
243+
[CommandOption("--gh-summary")]
244244
[DefaultValue(true)]
245245
public bool GitHubSummary { get; init; } = true;
246246

src/dotnet-retest/help.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ USAGE:
33
dotnet retest [OPTIONS] [-- [dotnet test options]]
44

55
OPTIONS:
6-
DEFAULT
7-
-h, --help Prints help information
8-
-v, --version Prints version information
9-
--attempts 5 Maximum attempts to run tests
10-
--trx-output Include test output in report
11-
--trx-skipped True Include skipped tests in report
12-
--trx-gh-comment True Report as GitHub PR comment
13-
--trx-gh-summary True Report as GitHub step summary
6+
DEFAULT
7+
-h, --help Prints help information
8+
-v, --version Prints version information
9+
--attempts 5 Maximum attempts to run tests
10+
--output Include test output in report
11+
--skipped True Include skipped tests in report
12+
--gh-comment True Report as GitHub PR comment
13+
--gh-summary True Report as GitHub step summary
1414
```

0 commit comments

Comments
 (0)