From b7e224cf8e51115e4e17dd48a0330c8b461071c5 Mon Sep 17 00:00:00 2001 From: Frode Flaten <3436158+fflaten@users.noreply.github.com> Date: Tue, 9 Jul 2024 17:03:23 +0000 Subject: [PATCH] Update configuration option description --- src/csharp/Pester/RunConfiguration.cs | 2 +- src/en-US/about_PesterConfiguration.help.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/csharp/Pester/RunConfiguration.cs b/src/csharp/Pester/RunConfiguration.cs index 9cb128d7c..e20558804 100644 --- a/src/csharp/Pester/RunConfiguration.cs +++ b/src/csharp/Pester/RunConfiguration.cs @@ -70,7 +70,7 @@ public RunConfiguration(IDictionary configuration) : this() 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); SkipRemainingOnFailure = new StringOption("Skips remaining tests after failure for selected scope, options are None, Run, Container and Block.", "None"); - FailOnNullOrEmptyForEach = new BoolOption("Fails the block or test when -ForEach is provided `$null or @(). Can be overriden using -AllowNullOrEmptyForEach on a specific block or test.", true); + FailOnNullOrEmptyForEach = new BoolOption("Fails discovery when -ForEach is provided $null or @() in a block or test. Can be overriden for a specific Describe/Context/It using -AllowNullOrEmptyForEach.", true); } public StringArrayOption Path diff --git a/src/en-US/about_PesterConfiguration.help.txt b/src/en-US/about_PesterConfiguration.help.txt index c58c30d9d..3ebe44620 100644 --- a/src/en-US/about_PesterConfiguration.help.txt +++ b/src/en-US/about_PesterConfiguration.help.txt @@ -69,7 +69,7 @@ SECTIONS AND OPTIONS Type: string Default value: 'None' - FailOnNullOrEmptyForEach: Fails the block or test when -ForEach is provided `$null or @(). Can be overriden using -AllowNullOrEmptyForEach on a specific block or test. + FailOnNullOrEmptyForEach: Fails discovery when -ForEach is provided $null or @() in a block or test. Can be overriden for a specific Describe/Context/It using -AllowNullOrEmptyForEach. Type: bool Default value: $true