nohwnd

@jakubjares.com

Pester & Profiler owner and maintainer. Senior software engineer, developing Testing.Platform, VSTest and MSTest at Microsoft. All opinions are mine.

Pester 6.1.0-alpha2 has global mocks, this solves headaches with -ModuleName. -ModuleName is now needed only when the function is not public to tell us where to find it. github.com/pester/Peste... Please try switching using it on your test base, and report issues. #pspester #powershell

Add experimental global mocks by nohwnd · Pull Request #2850 · pester/Pester

A normal mock only applies to calls from the scope where it is defined, or from the module you pass with -ModuleName. Code in another module looks the command up in its own session state and never ...

github.com

🧪 Pester 6.1.0-alpha2 is out! ✨ Experimental global mocks - please try! ⚡ Code coverage now works in parallel runs 📊 Better parallel output — Describe/Context headers + debug logs interleaved with tests 🔧 CI debug flag surfaces verbose/debug output github.com/pester/Peste... #pspester #powershell

Release 6.1.0-alpha2 · pester/Pester

What's Changed Add experimental global mocks by @nohwnd in #2850 Allow empty string for Should-BeString -Expected by @nohwnd in #2863 Collect code coverage in parallel runs by @nohwnd in #286...

github.com

Few more experiments coming to #pspester. One is global mock. A mock that is effective for the whole PowerShell session. So -ModuleName on Mock is a hint where to find the command, not a definition where it would apply. We probably should make it work like that from the start. #powershell

Thought Pester 6 is feature complete, but one more small breaking change - You can use tag 'None' to mean no tags. This was asked for multiple times, as a way to run tests that have no tags. Will release today in the next, and possibly last RC. #pspester #powershell

Preliminary plan for Pester 6 release is next Tuesday. We're on rc2 now, and the signal from repos piloting it is good - no major surprises. Try rc2 against your own suite before the final release if you can. Install-Module Pester -AllowPrerelease #pspester #powershell

Pester 6.0.0-rc1 🎉 Feature-complete! ⚡ Parallel test execution (experimental) 🆕 New Should-* syntax + 41 assertions 🔬 Should-BeEquivalent deep comparison 📊 Faster coverage by default 160+ PRs · 15 contributors #PowerShell #pspester

Thanks to #copilot I am making a ton of progress on getting to Pester 6. Milestone is complete, but I've added 20 or so more bugs that looked nice to squash as well. All code of course still gets 100% reviewed, it is just much much easier to write it. #pspester #powershell