Skip to content

Commit

Permalink
Add Run.Exit option clarification (#2346)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd committed May 10, 2023
1 parent 0c79596 commit 08a1e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/csharp/Pester/RunConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public RunConfiguration() : base("Run configuration.")
ScriptBlock = new ScriptBlockArrayOption("ScriptBlocks containing tests to be executed.", new ScriptBlock[0]);
Container = new ContainerInfoArrayOption("ContainerInfo objects containing tests to be executed.", new ContainerInfo[0]);
TestExtension = new StringOption("Filter used to identify test files.", ".Tests.ps1");
Exit = new BoolOption("Exit with non-zero exit code when the test run fails. When used together with Throw, throwing an exception is preferred.", false);
Exit = new BoolOption("Exit with non-zero exit code when the test run fails. Exit code is always set to `$LASTEXITCODE` even when this option is `$false`. When used together with Throw, throwing an exception is preferred.", false);
Throw = new BoolOption("Throw an exception when test run fails. When used together with Exit, throwing an exception is preferred.", false);
PassThru = new BoolOption("Return result object to the pipeline after finishing the test run.", false);
SkipRun = new BoolOption("Runs the discovery phase but skips run. Use it with PassThru to get object populated with all tests.", false);
Expand Down

0 comments on commit 08a1e00

Please sign in to comment.