StackOverflow Questions for Tag: pester-5

KJK
KJK

Reputation: 41

Issue mocking New-Object in Pester for Powershell: "You cannot call a method on a null-valued expresssion"

Score: 0

Views: 47

Answers: 2

Read More
Simon Elms
Simon Elms

Reputation: 19738

Mocking a pipeline function that returns a single object from the end block

Score: 2

Views: 67

Answers: 2

Read More
bravogolfgolf
bravogolfgolf

Reputation: 377

How to test function that mocks Get-ChildItem w/ -File parameter?

Score: 0

Views: 36

Answers: 1

Read More
Aesonus
Aesonus

Reputation: 68

Test Invocations of `Set-NetFirewallProfile` having the `-Profile` argument using Pester mocking

Score: 0

Views: 37

Answers: 1

Read More
Steven Betz
Steven Betz

Reputation: 1

Pester 5.X : Mocking of PowerCLI Commands doesn't work

Score: 0

Views: 21

Answers: 0

Read More

Error on Azure Storage Tables using Peter Test Framework by adding PowerShell commands

Score: 0

Views: 56

Answers: 1

Read More
Martin
Martin

Reputation: 535

Passing Context ForEach variables to It blocks

Score: 0

Views: 68

Answers: 0

Read More
tomwaitforitmy
tomwaitforitmy

Reputation: 729

How to handle dot-sourcing in Pester v5?

Score: 0

Views: 38

Answers: 0

Read More
ElonMusk
ElonMusk

Reputation: 55

Pester 5.50 Test scoping each block

Score: 2

Views: 51

Answers: 1

Read More
Ninja
Ninja

Reputation: 376

Test mock is called with correct parameters

Score: 0

Views: 93

Answers: 1

Read More
Simon Elms
Simon Elms

Reputation: 19738

Format for specifying exception type in Should -Throw -ExceptionType

Score: 1

Views: 95

Answers: 1

Read More
Simon Elms
Simon Elms

Reputation: 19738

Can Pester v5 Mock command be called outside an It, Before or After block?

Score: 1

Views: 79

Answers: 1

Read More
successhawk
successhawk

Reputation: 3351

Is there any way to test functions in a PowerShell script without executing the script?

Score: 3

Views: 1037

Answers: 2

Read More
Andy
Andy

Reputation: 939

Passing parameter to Pester -testcases

Score: 1

Views: 127

Answers: 1

Read More
Pramod
Pramod

Reputation: 371

All tests with variables are failing in Pester

Score: 1

Views: 651

Answers: 1

Read More
JeremySeattle
JeremySeattle

Reputation: 1

Pester - Execute the same set of tests for different modules

Score: 0

Views: 80

Answers: 1

Read More
Mark
Mark

Reputation: 339

Invoke-Pester v5 doesn't run my TestCases

Score: 0

Views: 284

Answers: 1

Read More
tomwaitforitmy
tomwaitforitmy

Reputation: 729

Why does Pester in Classic Azure Pipeline always fail?

Score: 4

Views: 404

Answers: 1

Read More
Franta
Franta

Reputation: 11

Pester test for PowerShell script fails with differing accent characters, how to fix?

Score: 1

Views: 74

Answers: 0

Read More
Purclot
Purclot

Reputation: 559

Pester doesn't reflect changes in a script

Score: 0

Views: 76

Answers: 1

Read More
PreviousPage 1Next