pester / Pester

Pester is the ubiquitous test and mock framework for PowerShell.
https://pester.dev/
Other
3.08k stars 470 forks source link

Fix WildcardPatternException when using dt in P #2443

Closed fflaten closed 4 months ago

fflaten commented 4 months ago

PR Summary

Tests with special characters in name would fail during filter-evaluation.

Example pre-PR:

. '/workspaces/Pester/tst/Pester.RSpec.TestResults.NUnit3.ts.ps1'

| - Write NUnit3 test results 
WildcardPatternException: The specified wildcard character pattern is not valid: *handles special characters well -!@#$%^&*()_+1234567890[];',./"-

PR Checklist

nohwnd commented 4 months ago

I did not know there is Escape for -like. 👍