Repository navigation
Move to new Pester version #3002
Description
Activity
James Truher (@JamesWTruher) and Aditya Patwardhan (@adityapatwardhan) - Have you guys investigated moving to a later version of Pester?
- addedWG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure
on Jan 17, 2017 - modified the milestones: This milestone has been deleted, This milestone has been deleted
on Mar 5, 2017 Joey Aiello (@joeyaiello) I wonder shall we distribute PowerShell 6 RTM with old Pester? Should we add this in Plan?
As far as I understood from James Truher (@JamesWTruher), the plan was always to be conservative with picking up new versions of Pester. Basically, that we shouldn't ship a new one unless we had a reason to pick up the new stuff.
It may very well be the case that we need to do that, but I'd like Jim to come in and make sure I've got the history right first.
I agree that conservatism here is good. But two years is too much.
There is another problem. If Windows users can easily upgrade Pester and exploit new features, the Unix users cannot do this. This is really a problem for those who want to be fully ported.
Reacted by Steve LeeRelated #1371
JamesWTruher commented
on Nov 14, 2017 CollaboratorMore actionsI've been looking at Pester 4.0.8 and it looks really great. Lot's of excellent improvements; First and foremost handling our cross-plat needs, but it's not completely backwardly compatible, and I get more than 100 test failures when I run our tests using 4.0.8. I've got a big bunch of them fixed and all of those are test issues, but it's taking a bit of time to track them all down.
The issues boil down to a couple of things - missing/changed assertions (Contains/FileContentMatch),
Beactually working against arrays (awesome), and tests which never actually worked, and because error checking has improved to catch them, likeShould Throwwhich now complains if it doesn't get a scriptblock, those tests are properly failing.I do look forward to the time when we can just grab this and dump our submodule and it shouldn't be too long now. Dave Wyatt (@dlwyatt) Is there any thought of making this a
nupkg?James Truher (@JamesWTruher) Pester is published to nuget.org, Chocolatey and the PowerShell Gallery. Technically all three of those are nuget feeds; take your pick. :)
Reacted by Ilya and Steve LeeJamesWTruher commented
on Nov 15, 2017 CollaboratorMore actionsDave Wyatt (@dlwyatt) awesome!
it-praktyk commented
on Jan 6, 2018 ContributorMore actionsPester since v. 4.1.0 is supported at PSCore 6.0 for all platforms (Linux, macOS, Windows - in alphabetical order).
Reacted by IlyaFixed in #6064
Now Pester v3.4.5 support output filters pester/Pester#645. We can use this to reduce the CI output.
Currently we use very old Pester version 3.3.9 (May 23, 2015) so perhaps the time has come to move to new version.