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 ANSI sequence shown in Azure DevOps summary #2352

Merged
merged 1 commit into from Jun 7, 2023

Conversation

fflaten
Copy link
Collaborator

@fflaten fflaten commented May 17, 2023

PR Summary

Fixes trailing ANSI reset sequence in pipeline run summary for errors etc. by using ConsoleColor RenderMode instead of Ansi when printing errors with AzureDevOps CI-format.

Fix #2350

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)

src/Main.ps1 Outdated
@@ -675,6 +675,10 @@
# todo: move mock cleanup to BeforeAllBlockContainer when there is any?
Remove-MockFunctionsAndAliases -SessionState $PSCmdlet.SessionState
}
else {
# this will inherit to child scopes and affect behavior of ex. TestDrive/TestRegistry
$runningPesterInPester = $true

Check warning

Code scanning / PSScriptAnalyzer

The variable 'runningPesterInPester' is assigned but never used. Warning

The variable 'runningPesterInPester' is assigned but never used.
@fflaten fflaten marked this pull request as ready for review May 17, 2023 23:32
@nohwnd nohwnd merged commit ccb455b into pester:main Jun 7, 2023
14 checks passed
@fflaten fflaten deleted the fix-azdo-ansi branch June 7, 2023 09:42
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.

ANSI sequence included in Azure Pipelines error result
2 participants