Skip to content

Conversation

@fflaten
Copy link
Collaborator

@fflaten fflaten commented May 21, 2024

PR Summary

Fixes NRE using mock debug logging when Should-Invoke with -ParameterFilter is used for a mocked native application. Caused by variable conflict-logging looking for CommandMetaData which doesn't exist for external commands = N/A logging.

Fix #2479

Backport to 5.6.0

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)

@fflaten fflaten marked this pull request as draft May 21, 2024 15:08
@fflaten
Copy link
Collaborator Author

fflaten commented May 21, 2024

While at it, let's save AST-processing for parameter-less functions as well.

@fflaten fflaten marked this pull request as ready for review May 21, 2024 15:15
@fflaten
Copy link
Collaborator Author

fflaten commented May 21, 2024

/backport to rel/5.6.x

@github-actions
Copy link

Started backporting to rel/5.6.x: https://github.com/pester/Pester/actions/runs/9177190930

@nohwnd
Copy link
Member

nohwnd commented May 21, 2024

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@nohwnd nohwnd merged commit 2d6418b into pester:main May 21, 2024
@fflaten fflaten deleted the fix-nre-variableconflict branch May 21, 2024 20:53
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.

Inconsistent behavior mocking external command between output verbosity 'Detailed' and 'Diagnostic'

2 participants