Skip to content

Conversation

@fflaten
Copy link
Collaborator

@fflaten fflaten commented May 5, 2024

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

  • PR has meaningful title
  • Summary describes changes
  • 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)
Tests with pattern characters in name would fail.
@nohwnd nohwnd merged commit 6d77316 into pester:main May 13, 2024
@nohwnd
Copy link
Member

nohwnd commented May 13, 2024

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

@fflaten fflaten deleted the fix-p-wildcardpattern branch May 13, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants