-
-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit output information for failed tests (#1975)
* Added ShowStackTrace property to Output section * Added ShowStackTrace parameter to Write-ErrorToScreen and refactored some long lines * ShowStackTrace doesn't limit ScriptStackTrace * Add ShowStackTrace output option to every call to Write-ErrorToScreen * Added configuration tests and made slight improvements in naming of existing tests * Use string builder to create the error message * Using empty string instead of new() for StringBuilder * Refactored format logic into separate Format-ErrorMessage function * Move first line of trace into Trace property * Fixing up tests * Added tests for Format-ErrorMessage and Write-ErrorToScreen * Removing unnecessary escaping and typos * Converted ShowStackTrace to StackTraceVerbosity option to support multiple options * Changed code to use StackTraceVerbosity to filter output * Set default for StackTraceVerbosity parameter * Updated configuration tests * Modified Output tests to test new option * Add warning message and override for Debug.ShowFullErrors * Removed warning and put deprecation notice in configuration * Added more configuration tests * Set Debug.ShowFullErrors to false prevent override for other tests * Use BeforeEach to simplify output tests
- Loading branch information
1 parent
23f9492
commit 989dac0
Showing
9 changed files
with
432 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.