Pester icon indicating copy to clipboard operation
Pester copied to clipboard

Fix WildcardPatternException when using dt in P

Open fflaten opened this issue 1 year ago • 0 comments

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

  • [x] PR has meaningful title
  • [x] Summary describes changes
  • [x] PR is ready to be merged
    • If not, use the arrow next to Create Pull Request to mark it as a draft. PR can be marked Ready for review when it's ready.
  • [ ] Tests are added/update (if required)
  • [ ] Documentation is updated/added (if required)

fflaten avatar May 05 '24 14:05 fflaten