Episode 262 - PowerScripting Podcast - Scott Muc on Testing with Pester

A Podcast about Windows PowerShell. Listen:

In This Episode

Tonight on the PowerScripting Podcast, we talk to Scott Muc about Pester

News

Interview

Guest - Scott Muc

Links

 

Chatroom Highlights:

[22:49:25] <mwrock> I did one and it was hard

<Jaykul> ## When will it get a psd1?

<stevenmurawski> ##Why is unit testing important for scripts?

<stevenmurawski> ##What benefits do we get from writing tests?

<stevenmurawski> ##How does TDD play into the equation?  Is that feasible with scripts?

<adamdriscoll2> ##I'm curious diffs between pester and psate. I integrated both in PoshTools and see a lot of similarities.

<organicit> ## are there any youtube video tutorials for Pester

<halr9000> http://www.meetup.com/Metro-Atlanta-Splunk-Meetup-Group/events/171166432/

<Jaykul> 200MB free, and you can get more by, uhhhh ... sharing on facebook http://news.cnet.com/8301-1023_3-57528605-93/netzero-subscribers-can-share-free-data-with-facebook-friends

<Jaykul> FYI: I am *not* endorsing NetZero. You should also try http://www.freedompop.com/

<Jaykul> Hey halr9000: /topic #PowerScriptingPodcast http://vaughnlive.tv/embed/video/jonwalz

* halr9000 changes topic to: http://vaughnlive.tv/embed/video/jonwalz

<halr9000> https://github.com/pester/Pester#pester

<Dave_Wyatt> https://github.com/jonwagner/PSate/wiki/PSate-v-Pester

<Jaykul> Dave_Wyatt: https://github.com/jaykul/PSAINT 😉

<scottmuc1> https://www.destroyallsoftware.com/talks/boundaries

<halr9000> https://www.destroyallsoftware.com/screencasts

<stevenmurawski> Another good resource is Working Effectively With Legacy Code by Michael Feathers.  Good discussion of where to create seams for testing. http://www.amazon.com/Working-Effectively-Legacy-Michael-Feathers/dp/0131177052/ref=sr_1_1?s=books&ie=UTF8&qid=1394764302&sr=1-1&keywords=working+with+legacy+code

<scottmuc1> http://babushka.me/

<stevenmurawski> Example of a resource https://github.com/PowerShellOrg/DSC/blob/master/Resources/StackExchangeResources/DSCResources/StackExchange_Pagefile/StackExchange_Pagefile.psm1

<stevenmurawski> Example of tests for a resource https://github.com/PowerShellOrg/DSC/blob/master/Resources/StackExchangeResources/DSCResources/StackExchange_Pagefile/StackExchange_Pagefile.Tests.ps1

<scottmuc1> http://scottmuc.com/powershell-pester-2-and-1-dot-2-released/

<JonWalz> http://www.powershellmagazine.com/2014/03/12/get-started-with-pester-powershell-unit-testing-framework/

<JonWalz> http://scottmuc.com/blog/development/powershell-bdd-testing-pester-screencast/

<halr9000> http://www.powershellmagazine.com/2014/03/12/get-started-with-pester-powershell-unit-testing-framework/

<Jaykul> https://github.com/pester/Pester/graphs/contributors

<scottmuc1> http://twitter.com/ScottMuc

<scottmuc1> http://scottmuc.com

<Dave_Wyatt> https://powershell.org/2014/03/13/building-desired-state-configuration-custom-resources/

<JonWalz> did you see this? https://github.com/PowerShellOrg/ebooks/tree/master/DSC

The Question -

  • Hero - Gandalf

About the Author

Jonathan Walz

Since March 2007, Jonathan Walz has been the co-host and technical brains for the PowerScripting Podcast. Conceived as a radio show for the PowerShell community, the podcast is the longest-lived PowerShell show in existence, and has featured dozens of weekly guests.