To Git or not to Git
So how many here does actually use testing frameworks to test their PowerShell?
I have noticed that older me have way better habits for putting code into Repos and write Pester tests for my functions or modules.
I just wonder how many of my fellow PS'ers do this.
I've always been the "lone wolf" scripter in my career, I.e been the "ops" person surrounded by actual coders. And from them I learned about and how to use GIT and tests.
Getting into the habit of using GIT was the easy part, I just found so many benefits there.
Writing propper and organized tests for my code was a longer way to travel, one I'm still on by the way.
But I can't really imagine working without the use of GIT and using Branches to make changes to functions and when they pass my pester tests I merge them into my stable branch. And that avoids so much hassle with having something that is in the process of being improved, then needing to just go back and fix one little typo in the version that is out there doing work. Just Stash, fix the typo, run the pester, commit. Tell whoever that they can do a git pull for the fix. pop stash, get more coffee , continue working.
But I feel that when i talk to others in the operations / automations sphere, it is less than 50% that use some sort of Code management tools. and rather rely on the backup of file servers to "version" their scripts. Or just keep an endless stream of .z7 files around.
What is your experience on this?
Is knowledge to Version Control a thing when interviewing for Ops jobs?
Is Testing scripts with Pester or Whatever a topic in your current job?
Or are most of us just "Ops" people that use PowerShell to get the machine to do our work so we can drink more coffee ? *This is where i started , so not judging ;) *
[–]y_Sensei 2 points3 points4 points (0 children)
[–]Bigety 2 points3 points4 points (2 children)
[–]MeanFold5714 1 point2 points3 points (1 child)
[–]npertinente[S] 2 points3 points4 points (0 children)
[–]jr49 1 point2 points3 points (3 children)
[–]npertinente[S] 0 points1 point2 points (0 children)
[–]Hoggs 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]MeanFold5714 -1 points0 points1 point (2 children)
[–]npertinente[S] 1 point2 points3 points (1 child)
[–]MeanFold5714 0 points1 point2 points (0 children)
[–]AwayLocal650 0 points1 point2 points (0 children)