Here is my PowerPoint presentation and example code from my "Continuous Testing of PowerShell Scripts with Visual Studio" session at SharePoint Saturday, DC this past weekend (Saturday, 8/27/2012).
The example code was created with Visual Studio 2012.
For the tricks on how to get it to work, just use the combination of my PowerPoint presentation and the example. If you don't have Visual Studio 2012, don't worry, you can open up the individual files in notepad to see how I did it. You can look at the .csproj file as well in notepad since it's just XML. This file have the Post-Deploy commands in it. Remember this technique works with Visual Studio 2010 as well.
For those that attended, I thank you! I had a lot of fun with this talk. We had great conversations throughout the session. Feel free to offer feedback to make this session and future sessions better in the future. I always want to improve.
UPDATE 8/29/2012: if you attended this session please submit feedback here. The more detailed comments you provide, the better this presentation and future presentations will become!
Please comment or contact me for any questions you may have. Thanks and I look forward with talking with you.