Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WildcardPatternException when using dt in P #2443

Merged
merged 1 commit into from
May 13, 2024

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
14 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants