How do I test the value of a variable inside a function with Pester?

This page summarizes the projects mentioned and recommended in the original post on /r/PowerShell

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • Pester

    Pester is the ubiquitous test and mock framework for PowerShell.

  • Thanks heaps for asking this questions. I’ve, not very thoroughly, been thinking a few times over the last few times I’ve played with pester about how I can test the inner workings of my functions. /u/purplemonkeymad has clarified the suspicious I had about the scope of testing ability of Pester. Its not a problem just makes you structure modules more thoroughly and modularly. That answer had me wondering if inner functions (to keep them contained and tidy) could be tested and sadly seems like not. https://github.com/pester/Pester/issues/414

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts