Assuming pester is required, the following results were found.

  • Which Version Does Import-Module Import?

    machine. You can even have multiple versions of the same module imported into the same session. Here are the versions of Pester on my test machine. (I have many because I’ve been experimenting with Pester for a while.) PS C:\ps-test> Get-Module -List...

    https://info.sapien.com/index.php/scripting/scripting-modules/which-version-does-import-module-import
  • How to Run a Pester Test

    Applies to: Pester 3.4.0 When you crack open the Pester module, you find the New-Fixture function, which creates a script and test file pair, and the Invoke-Pester function, which runs Pester tests. But New-Fixture is not the only way to create a...

    https://info.sapien.com/index.php/scripting/scripting-modules/how-to-run-a-pester-test
  • Invoke-Pester: Running Selected Tests

    Applies to: Pester 3.4.0 In How to Run a Pester Test , I talked about the different places that you can put your Pester days and the different ways to run them, including, but not limited to, the Invoke-Pester function. Today, I’ll talk about the...

    https://info.sapien.com/index.php/scripting/scripting-modules/invoke-pester-running-selected-tests
  • How to Pass Parameters to a Pester Test Script

    Applies to Pester 3.4.0 Like any Windows PowerShell script, a script that contains Pester tests can include parameters. It’s easy enough to run the script and pass parameters and values in the usual way. But, when you use Invoke-Pester to run the...

    https://info.sapien.com/index.php/scripting/scripting-modules/how-to-pass-parameters-to-a-pester-test-script
  • Testing Pester Code Coverage

    Applies to: PowerShell 5.0.10586.122, 5.1.14367, Pester 3.4.0 I’m one of those people who thinks a score of 99% is failing, so I love to see those 100% scores when I use the CodeCoverage parameter of Invoke-Pester . But, while assembling my Pester...

    https://info.sapien.com/index.php/scripting/scripting-modules/testing-pester-code-coverage
  • Using Group-Object to Detect Command Name Conflicts

    Name | Where Count -gt 1 Let’s look at one of the multi-member groups. This is one for the Describe command in the Pester module. I use and study Pester pretty obsessively, so I have multipleversions of the Pester module on my test machine. PS C:\>...

    https://info.sapien.com/index.php/scripting/scripting-modules/using-group-object-to-detect-command-name-conflicts
  • How to Write About Help for your Module

    list the subtitles in this section, like a table of contents. For example, I rewrote the short description for the About_Pester help topic. The original description is incomplete (Pester does far more than just run tests) and it includes 'BDD', which is...

    https://info.sapien.com/index.php/scripting/scripting-help/how-to-write-about-help-for-your-module
  • The Effect of SkipPublisherCheck

    ---------------------- What's the Error? While creating a new VM in our office, I tried to install a new version of Pester, but got this somewhat familiar error. It says that the version of Pester that we're trying to install (4.0.2) in not digitally...

    https://info.sapien.com/index.php/scripting/scripting-modules/effect-of-skippublishercheck
  • Pester

    https://info.sapien.com/index.php/component/tags/tag/pester
  • HelpUri v. HelpInfoUri

    days), many have serious bugs that could have been discovered by running very simple tests. Really simple tests. Not even Pester tests. Just running Import-Module (tests the .psd1), Get-Command (Are all of my parameters, aliases, and functions...

    https://info.sapien.com/index.php/scripting/scripting-help/helpuri-v-helpinfouri
  • Using Prefixes to Prevent Command Name Collision

    In January, I had the honor of presenting to the Mississippi PowerShell User Group (MSPSUG) . I’ve known the organizers, Mike Robbins and Rohn Edwards for years, and truly respect them. The PSUG is online-only, which makes it a challenge for...

    https://info.sapien.com/index.php/scripting/scripting-modules/using-prefixes-to-prevent-command-name-collision
  • Feature Comparison Chart

    (CPU & Memory usage) Script Profiler (Functioncoverage) Testing PowerShell Profile Management PSScriptAnalyzer Integration Pester Integration File Comparison Tool Windows Sandbox support Automatic PowerShell Runspace Reset Publishing Script Packager...

    https://info.sapien.com/index.php/quickguides/feature-comparison
  • Finding PowerShell 5.0

    will be updated with Windows. All SAPIEN software products fully support Windows PowerShell 5.0 and the new modules, like Pester and PSScriptAnalyzer. So, how do you find and install PowerShell 5.0? On Windows 10 Windows PowerShell 5.0 is installed with...

    https://info.sapien.com/index.php/scripting/scripting-tips-tricks/finding-powershell-5-0
  • Using a ModuleSpecification Object

    places to use a ModuleSpecification object is the value of the #Requires -Module parameter. #Requires -Module @{ModuleName='Pester'; ModuleVersion='3.4.0'} The Using module statement , which imports modules and any PowerShell classes defined in the...

    https://info.sapien.com/index.php/scripting/versioning/using-a-modulespecification-object
  • Advanced Help for Advanced Functions - #PSBlogWeek

    The result is a better designed function and a better user experience. If you’re using a test framework, like Pester , you can also use your help examples as test cases. In this post, I’ll write help for the New-ValidationDynamicParam function that Adam...

    https://info.sapien.com/index.php/scripting/scripting-help/advanced-help-for-advanced-functions-psblogweek
  • Hidden Charms of PowerShell Studio - #2

    to Customize PowerShell Studio .) My favorite thing is dragging a tab into a side-by-side position, like when I'm writing Pester tests for a script. When you have the tabs and panes in your favorite spots, you can save thearrangement as a layout, so you...

    https://info.sapien.com/index.php/how-to/powershell-studio-howto/hidden-charms-of-powershell-studio-2
  • How Git branches affect files on disk

    AddHelpTest When I do a ‘dir’ to list the subdirectories and files in the PSScriptAnalyzer directory, I can see the Pester test file that I added, Module.Help.Tests.ps1. After some work on the files, I switch back to my development branch: git checkout...

    https://info.sapien.com/index.php/version-control/how-git-branches-affect-files-on-disk

Results 1 - 17 of 17
Copyright © 2024 SAPIEN Technologies, Inc.