You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CHANGELOG.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ Newer releases are tracked only in [GitHub releases](https://github.com/pester/P
74
74
## 4.7.0-beta1 (February 23, 2019)
75
75
76
76
- Add alias for extension-less external commands on Windows [#1252](https://github.com/pester/Pester/pull/1252)
77
-
- Add use alises in mock ParameterFilter [#1240](https://github.com/pester/Pester/pull/1240)
77
+
- Add use aliases in mock ParameterFilter [#1240](https://github.com/pester/Pester/pull/1240)
78
78
- Fix creating mocks of Get-Module [#1233](https://github.com/pester/Pester/pull/1233)
79
79
- Fix Set-ItResult not failing in Pester strict mode [#1225](https://github.com/pester/Pester/pull/1225)
80
80
- Remove Invoke-GherkinStep from exported functions [#1229](https://github.com/pester/Pester/pull/1229)
@@ -216,7 +216,7 @@ Newer releases are tracked only in [GitHub releases](https://github.com/pester/P
216
216
- Syntax for the Should operator updated in Pester tests itself, an about\_\* documentation, examples [#910](https://github.com/pester/Pester/issues/910)
217
217
- Remove progress to make execution faster and fix linux formatting [#938](https://github.com/pester/Pester/issues/938)
218
218
- Invoke-Pester -Strict fails with internal pester error [#886](https://github.com/pester/Pester/issues/886)
219
-
due to the prefered syntax change introduced in Pester v4 [#903](https://github.com/pester/Pester/issues/903)
219
+
due to the preferred syntax change introduced in Pester v4 [#903](https://github.com/pester/Pester/issues/903)
220
220
- Fix Gherkin for Linux [#937](https://github.com/pester/Pester/issues/937) and PS2 [#942](https://github.com/pester/Pester/issues/942)
221
221
222
222
## 4.0.8 (September 15, 2017)
@@ -263,7 +263,7 @@ Newer releases are tracked only in [GitHub releases](https://github.com/pester/P
263
263
## 4.0.3-rc (March 22, 2017)
264
264
265
265
- Fix context and describe in test results [#755](https://github.com/pester/Pester/issues/755)
266
-
- Fix mocking functions in two consequitive contexts [#744](https://github.com/pester/Pester/issues/744)
266
+
- Fix mocking functions in two consecutive contexts [#744](https://github.com/pester/Pester/issues/744)
267
267
- Fix import localized data on non en-US systems [#711](https://github.com/pester/Pester/issues/711)
Copy file name to clipboardExpand all lines: src/csharp/Pester/RunConfiguration.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ public RunConfiguration(IDictionary configuration) : this()
70
70
PassThru=newBoolOption("Return result object to the pipeline after finishing the test run.",false);
71
71
SkipRun=newBoolOption("Runs the discovery phase but skips run. Use it with PassThru to get object populated with all tests.",false);
72
72
SkipRemainingOnFailure=newStringOption("Skips remaining tests after failure for selected scope, options are None, Run, Container and Block.","None");
73
-
FailOnNullOrEmptyForEach=newBoolOption("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);
73
+
FailOnNullOrEmptyForEach=newBoolOption("Fails discovery when -ForEach is provided $null or @() in a block or test. Can be overridden for a specific Describe/Context/It using -AllowNullOrEmptyForEach.",true);
Copy file name to clipboardExpand all lines: src/en-US/about_PesterConfiguration.help.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ SECTIONS AND OPTIONS
69
69
Type: string
70
70
Default value: 'None'
71
71
72
-
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.
72
+
FailOnNullOrEmptyForEach: Fails discovery when -ForEach is provided $null or @() in a block or test. Can be overridden for a specific Describe/Context/It using -AllowNullOrEmptyForEach.
if ($PesterPreference.Debug.WriteDebugMessages.Value) {
1055
-
Write-PesterDebugMessage-Scope Mock -Message "Filtering behaviors for command $CommandName, for target module $(if ($targettingAModule) { $TargetModule } else { '$null' }) (Showing all behaviors for this command, actual filtered list is further in the log, look for 'Filtered parametrized behaviors:' and 'Filtered default behaviors:'):"
1055
+
Write-PesterDebugMessage-Scope Mock -Message "Filtering behaviors for command $CommandName, for target module $(if ($targetingAModule) { $TargetModule } else { '$null' }) (Showing all behaviors for this command, actual filtered list is further in the log, look for 'Filtered parametrized behaviors:' and 'Filtered default behaviors:'):"
if ($PesterPreference.Debug.WriteDebugMessages.Value) {
1095
-
Write-PesterDebugMessage-Scope Mock -Message "Behavior is not from the target module $(if ($targettingAModule) { $TargetModule } else { '$null' }), skipping it:`n$(&$getBehaviorMessage$b)"
1095
+
Write-PesterDebugMessage-Scope Mock -Message "Behavior is not from the target module $(if ($targetingAModule) { $TargetModule } else { '$null' }), skipping it:`n$(&$getBehaviorMessage$b)"
1096
1096
}
1097
1097
}
1098
1098
}
@@ -1101,11 +1101,11 @@ function Invoke-Mock {
1101
1101
# keep the first found (the last one defined)
1102
1102
if ($null-eq$nonModuleDefaultBehavior) {
1103
1103
$nonModuleDefaultBehavior=$b
1104
-
if ($targettingAModule-and$PesterPreference.Debug.WriteDebugMessages.Value) {
1104
+
if ($targetingAModule-and$PesterPreference.Debug.WriteDebugMessages.Value) {
1105
1105
Write-PesterDebugMessage-Scope Mock -Message "Behavior is a default behavior from script scope, saving it to use as a fallback if default behavior for module $TargetModule is not found:`n$(&$getBehaviorMessage$b)"
1106
1106
}
1107
1107
1108
-
if (-not$targettingAModule-and$PesterPreference.Debug.WriteDebugMessages.Value) {
1108
+
if (-not$targetingAModule-and$PesterPreference.Debug.WriteDebugMessages.Value) {
1109
1109
Write-PesterDebugMessage-Scope Mock -Message "Behavior is a default behavior from script scope, saving it:`n$(&$getBehaviorMessage$b)"
1110
1110
}
1111
1111
}
@@ -1116,11 +1116,11 @@ function Invoke-Mock {
1116
1116
}
1117
1117
}
1118
1118
else {
1119
-
if ($targettingAModule-and$PesterPreference.Debug.WriteDebugMessages.Value) {
1119
+
if ($targetingAModule-and$PesterPreference.Debug.WriteDebugMessages.Value) {
1120
1120
Write-PesterDebugMessage-Scope Mock -Message "Behavior is a parametrized behavior from script scope, skipping it. (Parametrized script scope behaviors are not used as fallback for module scoped mocks.):`n$(&$getBehaviorMessage$b)"
1121
1121
}
1122
1122
1123
-
if (-not$targettingAModule-and$PesterPreference.Debug.WriteDebugMessages.Value) {
1123
+
if (-not$targetingAModule-and$PesterPreference.Debug.WriteDebugMessages.Value) {
1124
1124
Write-PesterDebugMessage-Scope Mock -Message "Behavior is a parametrized behavior from script scope, adding it to non-module parametrized behavior list:`n$(&$getBehaviorMessage$b)"
1125
1125
}
1126
1126
@@ -1134,7 +1134,7 @@ function Invoke-Mock {
1134
1134
# then the default mock for Remove-Item should be effective.
1135
1135
1136
1136
# using @() to always get array. This avoids null error in Invoke-MockInternal when no behaviors where found (if-else unwraps the lists)
1137
-
$behaviors=@(if ($targettingAModule) {
1137
+
$behaviors=@(if ($targetingAModule) {
1138
1138
# we have default module behavior add it to the filtered behaviors if there are any
0 commit comments