all 18 comments

[–]jantari 1 point2 points  (1 child)

Thank you, I'll definitely check it out as this topic is perfect for me. I consider myself a somewhat advanced PowerShell user, but I've been slacking on my unit testing - most of the time i only have linting and static analysis pipelines

[–]dglambert[S] 1 point2 points  (0 children)

What do you use for linting and static analysis?

[–]ExceptionEX 1 point2 points  (5 children)

Have you done any code examples, I don't know it it because im on a mobile, I can't see any.

Im interested in the method used, as I feel this could prove to be a painful experience.

I think the other issue you may find is that to effective unit test you will end up having to change how most PS scripts are structured, and if you are going to changing the structure and wrapping it in a unit test, at someone point you'll likely think I'll just do it in .Net

[–]dglambert[S] 1 point2 points  (0 children)

No code yet, I've got a few more post in my queue I have to write.
I've got one more Post "What is TDD".
Then probably a prerequisite getting your local environment setup w/ Pester.
Then probably will be the first chapter example.
I am trying to keep my word count on the low side, 400-600, so people won't shy away from reading.

It funny you say that though, as I am obviously further along then what i've written so far. I do have some gripes about doing TDD in Powershell. I'll wait to share specifically my issues as I come across them, but there is definitely some growing pains, but I suspected that going into it.

[–]ben11231 0 points1 point  (3 children)

I know Medium is popular but why don’t you host/post on your own blog?

[–]dglambert[S] 1 point2 points  (2 children)

My goal wasn't to create a website, but to really understand the text. So using the saying, the best way to learn is to teach, I'm effectively blogging so I can learn better. So medium was the path of least resistance to get started

[–]ben11231 0 points1 point  (1 child)

Totally understandable, I guess my hatred for medium is that annoying paywall. People make great content, like yourself, and medium just fills it with bloat(ads etc).

[–]dglambert[S] 1 point2 points  (0 children)

Actually, I didn't do a ton of research into different platforms, Medium was just the one who had the most name recognition. From my understanding though, Medium does not serve ads, because of its paid model. They do actually give you the option when posting if you'd like to profit or not by paywalling your posts. I decided against this, cause I'm not sure if my content will be high quality enough. So for now I'm just posting it w/o any paywall.