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
The output that you see at the start of the test run looks like this below:
Executing all tests in System.Collections.Hashtable', 'System.Collections.Hashtable', 'System.Collections.Hashtable
The tests all still execute as they should, it's just that first line out output that is looking at the objects and not the Path property in each.
To that end, could we do something with the output here to include the parameters as well? In the case of what I'm doing I'm actually running the tests in a single directory multiple times, but shifting the parameters on each (to point to a different stub module each time). So something more meaningful here would be useful.
The text was updated successfully, but these errors were encountered:
Fix for:
- Unexpected output when passing hashtable to Invoke-Pester pester#699
- Bug in output where multiple Paths are passed in to -Scripts at Invoke-Pester pester#710
Changes:
- Simply tests if there is a path property, if so uses it for the message formatting. Otherwise, falls back to original method.
- `-join ', '` was used to provide consistency with current messages, as the default ("', '") has no bracketing quotes.
Added formatting function and tests, did only basic testing because the Write-Host cannot be mocked in Write-PesterStart and I don't want to dig too deep into the code.
Fix#699Fix#710
If you call Invoke-Pester with an array of hashtables passed to the -Scripts parameter like this:
The output that you see at the start of the test run looks like this below:
The tests all still execute as they should, it's just that first line out output that is looking at the objects and not the Path property in each.
To that end, could we do something with the output here to include the parameters as well? In the case of what I'm doing I'm actually running the tests in a single directory multiple times, but shifting the parameters on each (to point to a different stub module each time). So something more meaningful here would be useful.
The text was updated successfully, but these errors were encountered: