Skip to content

Commit

Permalink
Minor cleanup in the console runner help output
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Apr 25, 2024
1 parent a7fe1e2 commit 7c8978d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
20 changes: 9 additions & 11 deletions src/xunit.v3.runner.common/Parsers/CommandLineParserBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public abstract class CommandLineParserBase
"note: when running a v1/v2 assembly, the culture option will be ignored",
" default - run with default operating system culture",
" invariant - run with the invariant culture",
" (string) - run with the given culture (f.e., 'en-US')"
" (string) - run with the given culture (i.e., 'en-US')"
);
AddParser("debug", OnDebug, CommandLineGroup.General, null, "launch the debugger to debug the tests");
AddParser("diagnostics", OnDiagnostics, CommandLineGroup.General, null, "enable diagnostics messages for all test assemblies");
Expand All @@ -51,9 +51,9 @@ public abstract class CommandLineParserBase
" only - run only explicit tests"
);
AddParser("failSkips", OnFailSkips, CommandLineGroup.General, null, "treat skipped tests as failures");
AddParser("failSkips-", OnFailSkipsMinus, CommandLineGroup.General, null, "treat skipped tests as skipped (default)");
AddParser("failSkips-", OnFailSkipsMinus, CommandLineGroup.General, null, "treat skipped tests as skipped [default]");
AddParser("failWarns", OnFailWarns, CommandLineGroup.General, null, "treat passing tests with warnings as failures");
AddParser("failWarns-", OnFailWarnsMinus, CommandLineGroup.General, null, "treat passing tests with warnings as successful (default)");
AddParser("failWarns-", OnFailWarnsMinus, CommandLineGroup.General, null, "treat passing tests with warnings as successful [default]");
AddParser("ignoreFailures", OnIgnoreFailures, CommandLineGroup.General, null, "if tests fail, do not return a failure exit code");
AddParser("internalDiagnostics", OnInternalDiagnostics, CommandLineGroup.General, null, "enable internal diagnostics messages for all test assemblies");
AddParser(
Expand Down Expand Up @@ -90,14 +90,14 @@ public abstract class CommandLineParserBase
// Filter options
AddParser(
"class", OnClass, CommandLineGroup.Filter, "\"name\"",
"run all methods in a given test class (should be fully",
"specified; i.e., 'MyNamespace.MyClass')",
"run all methods in a given test class (should be fully specified;",
"i.e., 'MyNamespace.MyClass' or 'MyNamespace.MyClass+InnerClass')",
" if specified more than once, acts as an OR operation"
);
AddParser(
"class-", OnClassMinus, CommandLineGroup.Filter, "\"name\"",
"do not run any methods in a given test class (should be fully",
"specified; i.e., 'MyNamespace.MyClass')",
"do not run any methods in a given test class (should be fully specified;",
"i.e., 'MyNamespace.MyClass' or 'MyNamespace.MyClass+InnerClass')",
" if specified more than once, acts as an AND operation"
);
AddParser(
Expand All @@ -114,14 +114,12 @@ public abstract class CommandLineParserBase
);
AddParser(
"namespace", OnNamespace, CommandLineGroup.Filter, "\"name\"",
"run all methods in a given namespace (i.e.,",
"'MyNamespace.MySubNamespace')",
"run all methods in a given namespace (i.e., 'MyNamespace.MySubNamespace')",
" if specified more than once, acts as an OR operation"
);
AddParser(
"namespace-", OnNamespaceMinus, CommandLineGroup.Filter, "\"name\"",
"do not run any methods in a given namespace (i.e.,",
"'MyNamespace.MySubNamespace')",
"do not run any methods in a given namespace (i.e., 'MyNamespace.MySubNamespace')",
" if specified more than once, acts as an AND operation"
);
AddParser(
Expand Down
4 changes: 2 additions & 2 deletions src/xunit.v3.runner.console/CommandLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ private void AddParsers()

// .NET Framework options
AddParser(
"appdomains", OnAppDomains, CommandLineGroup.NetFramework, "<option>",
"appDomains", OnAppDomains, CommandLineGroup.NetFramework, "<option>",
"choose an app domain mode",
" required - force app domains on",
" denied - force app domains off",
" ifavailable - use app domains if they're available [default]"
);
AddParser("noshadow", OnNoShadow, CommandLineGroup.NetFramework, null, "do not shadow copy assemblies");
AddParser("noShadow", OnNoShadow, CommandLineGroup.NetFramework, null, "do not shadow copy assemblies");

// Deprecated options
AddHiddenParser("noappdomain", OnNoAppDomain);
Expand Down

0 comments on commit 7c8978d

Please sign in to comment.