python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to Pester-test a method in a class module (.psm1)?
I have written multiple classes. All of them are being used interchangeably. The main script (Main.ps1) imports some of them and runs the program.
I'd like to create Pester tests for each one of these...
noobie
Votes: 0
Answers: 1
How to mock a ScriptMethod of PSCustomObject from another script?
We are trying to figure out how to mock a ScriptMethod of PSCustomObject from another script using Pester.
Script1.ps1
$script2 = & $Script2PS1Path -programName $myScriptName
function Invoke-M...

Antony Nelson G
Votes: 0
Answers: 1
Issue with script returning $null in Pester test while it shouldn't
So I'm having a bit of an issue in PowerShell
I wrote a simple script for a class project about Pester testing
It looks like this
param ([Parameter(Mandatory, ValueFromPipeline = $true)]$FN, [Paramete...
Michiel De Cap
Votes: 0
Answers: 1
Pester 5 code coverage in Azure DevOps - File does not exist (any more)
Ever since Pester 5 a Pester configuration is recommended to generate test and code coverage output. The old school Pester 4 method still works, but we wanted to get rid of the legacy warning.
Since w...

Peter the Automator
Votes: 0
Answers: 1