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)
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
Mocking Response of a REST API in Pester
I have a PowerShell script that returns a string from a REST API call. I am using
$Response = Invoke-RestMethod -Method Post -Uri $Uri -Body $Body -ContentType 'application/x-www-form-urlencoded'
ret...
Zoltaire
Votes: 0
Answers: 2
Mocking Auth Token function in Pester
I have written a PowerShell function that generates an auth token in azure using REST API call. I am using the tenant id, Service principal client id and client secret as input param to generate this ...
Zoltaire
Votes: 0
Answers: 0
Pester 5 mocking and beforediscovery
trying to test a function in pester 5.3.1 (latest) and ps7.2.1
function Remove-GraphUser
{
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[object]$cloudUsers
...
Kiran Reddy
Votes: 0
Answers: 1