-
-
Notifications
You must be signed in to change notification settings - Fork 472
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
Stacktrace is not filtered in non-english system languages #2062
Comments
AFAIK the stacktrace above showing the internal calls in Pester.psm1 should only be shown when using the configuration options Is it possible that you have one of these in set in |
No, I have not Run.StackTraceVerbosity or Debug.ShowFullStackTrace in config .psd1 file... now I set there options. I need some times for tests... |
This is my config file : https://github.com/test-st-petersburg/DocTemplates/blob/master/tests/pester-config.psd1 |
Thanks. This issue is caused by your non-english system language. We currently filter the stacktrace using regex-patterns looking for english stacktrace. Pester/src/functions/Output.ps1 Lines 431 to 432 in 5b01afa
|
…em languages" Pester internal lines are filtered from Stack Traces using regex. Windows stack traces are localized depending on the language of the OS. In ConvertTo-FailureLines, we throw an exception on purpose, then catch it in order to detect the localized strings of the stack trace. We then feed these localized strings to the regex for filtering.
I would love to fix, but we don't have a repro for the original problem so it looks like it is not a problem anymore. If someone finds out how to repro, or even better, test this. We can re-open. |
General summary of the issue
Please, disable verbosity exception output (execution stack trace) for failed tests (pester/vscode-adapter#51).
Describe your environment
Pester version : 5.3.0 C:\Users\sergei.s.betke\Documents\WindowsPowerShell\Modules\Pester\5.3.0\Pester.psm1
PowerShell version : 5.1.15063.674
OS version : Microsoft Windows NT 10.0.15063.0
Steps to reproduce
Test file:
Expected Behavior
Desired output:
Current Behavior
Output:
The text was updated successfully, but these errors were encountered: