Skip to content

Commit 08a1e00

Browse files
authored
Add Run.Exit option clarification (#2346)
1 parent 0c79596 commit 08a1e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/csharp/Pester/RunConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public RunConfiguration() : base("Run configuration.")
6363
ScriptBlock = new ScriptBlockArrayOption("ScriptBlocks containing tests to be executed.", new ScriptBlock[0]);
6464
Container = new ContainerInfoArrayOption("ContainerInfo objects containing tests to be executed.", new ContainerInfo[0]);
6565
TestExtension = new StringOption("Filter used to identify test files.", ".Tests.ps1");
66-
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);
66+
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);
6767
Throw = new BoolOption("Throw an exception when test run fails. When used together with Exit, throwing an exception is preferred.", false);
6868
PassThru = new BoolOption("Return result object to the pipeline after finishing the test run.", false);
6969
SkipRun = new BoolOption("Runs the discovery phase but skips run. Use it with PassThru to get object populated with all tests.", false);

0 commit comments

Comments
 (0)