Podcast
Episode 262 – PowerScripting Podcast – Scott Muc on Testing with Pester
Listen to this Episode
Audio available
A Podcast about Windows PowerShell. Listen:
In This Episode
Tonight on the PowerScripting Podcast, we talk to Scott Muc about Pester
News
-
[https://powershell.org/community-events/summit/](https://powershell.org/community-events/summit/)
-
Alan Renouf will be presenting at the [Norcal PowerShell user group](http://norcalposh.org) on 4/1
Interview
Guest - Scott Muc
Links
-
Pester on Github: [https://github.com/pester/Pester#pester](https://github.com/pester/Pester#pester)
-
[https://www.destroyallsoftware.com/talks/boundaries](https://www.destroyallsoftware.com/talks/boundaries)
-
[http://scottmuc.com/blog/development/powershell-bdd-testing-pester-screencast/](http://scottmuc.com/blog/development/powershell-bdd-testing-pester-screencast/)
-
[http://www.powershellmagazine.com/2014/03/12/get-started-with-pester-powershell-unit-testing-framework/](http://www.powershellmagazine.com/2014/03/12/get-started-with-pester-powershell-unit-testing-framework/)
-
[http://twitter.com/ScottMuc](http://twitter.com/ScottMuc)
-
[http://scottmuc.com](http://scottmuc.com)
Chatroom Highlights:
[22:49:25] I did one and it was hard
## When will it get a psd1?
##Why is unit testing important for scripts?
##What benefits do we get from writing tests?
##How does TDD play into the equation? Is that feasible with scripts?
##I'm curious diffs between pester and psate. I integrated both in PoshTools and see a lot of similarities.
## are there any youtube video tutorials for Pester
[http://www.meetup.com/Metro-Atlanta-Splunk-Meetup-Group/events/171166432/](http://www.meetup.com/Metro-Atlanta-Splunk-Meetup-Group/events/171166432/)
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](http://news.cnet.com/8301-1023_3-57528605-93/netzero-subscribers-can-share-free-data-with-facebook-friends)
FYI: I am *not* endorsing NetZero. You should also try http://www.freedompop.com/
Hey halr9000: /topic #PowerScriptingPodcast [http://vaughnlive.tv/embed/video/jonwalz](http://vaughnlive.tv/embed/video/jonwalz)
* halr9000 changes topic to: http://vaughnlive.tv/embed/video/jonwalz
[https://github.com/pester/Pester](https://github.com/pester/Pester)#pester
[https://github.com/jonwagner/PSate/wiki/PSate-v-Pester](https://github.com/jonwagner/PSate/wiki/PSate-v-Pester)
Dave_Wyatt: [https://github.com/jaykul/PSAINT](https://github.com/jaykul/PSAINT) 😉
[https://www.destroyallsoftware.com/talks/boundaries](https://www.destroyallsoftware.com/talks/boundaries)
[https://www.destroyallsoftware.com/screencasts](https://www.destroyallsoftware.com/screencasts)
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](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)
[http://babushka.me/](http://babushka.me/)
Example of a resource [https://github.com/PowerShellOrg/DSC/blob/master/Resources/StackExchangeResources/DSCResources/StackExchange_Pagefile/StackExchange_Pagefile.psm1](https://github.com/PowerShellOrg/DSC/blob/master/Resources/StackExchangeResources/DSCResources/StackExchange_Pagefile/StackExchange_Pagefile.psm1)
Example of tests for a resource [https://github.com/PowerShellOrg/DSC/blob/master/Resources/StackExchangeResources/DSCResources/StackExchange_Pagefile/StackExchange_Pagefile.Tests.ps1](https://github.com/PowerShellOrg/DSC/blob/master/Resources/StackExchangeResources/DSCResources/StackExchange_Pagefile/StackExchange_Pagefile.Tests.ps1)
[http://scottmuc.com/powershell-pester-2-and-1-dot-2-released/](http://scottmuc.com/powershell-pester-2-and-1-dot-2-released/)
[http://www.powershellmagazine.com/2014/03/12/get-started-with-pester-powershell-unit-testing-framework/](http://www.powershellmagazine.com/2014/03/12/get-started-with-pester-powershell-unit-testing-framework/)
[http://scottmuc.com/blog/development/powershell-bdd-testing-pester-screencast/](http://scottmuc.com/blog/development/powershell-bdd-testing-pester-screencast/)
[http://www.powershellmagazine.com/2014/03/12/get-started-with-pester-powershell-unit-testing-framework/](http://www.powershellmagazine.com/2014/03/12/get-started-with-pester-powershell-unit-testing-framework/)
[https://github.com/pester/Pester/graphs/contributors](https://github.com/pester/Pester/graphs/contributors)
[http://twitter.com/ScottMuc](http://twitter.com/ScottMuc)
[http://scottmuc.com](http://scottmuc.com)
[https://powershell.org/2014/03/13/building-desired-state-configuration-custom-resources/](https://powershell.org/2014/03/13/building-desired-state-configuration-custom-resources/)
did you see this? [https://github.com/PowerShellOrg/ebooks/tree/master/DSC](https://github.com/PowerShellOrg/ebooks/tree/master/DSC)
The Question -
-
Hero - Gandalf