Posts Tagged Unit Testing
Workaround for unit testing code that reside in the GAC
Posted by Johan Leino in ALM, SharePoint on February 20, 2014
The problem I expressed my frustration the other day on twitter when it comes to unit testing and code that reside in GAC (global assembly cache). This problem may occur more often in frameworks that like to put their code in the GAC, like SharePoint for example. Let’s examine this with an example: Imagine the […]
Pester: How to unit test your PowerShell modules
Posted by Johan Leino in PowerShell on September 25, 2013
I’ve written about Pester before on how & why you should really start testing your PowerShell code. However, obstacles may arise when you want to write unit tests for PowerShell modules. In this post I’m going to present a solution that enables you to overcome some of these obstacles. Let’s get started. Problem Let’s take the […]
Pester: Unit Testing for PowerShell
Posted by Johan Leino in PowerShell on September 13, 2013
Pester is a BDD inspired testing framework for PowerShell just like Jasmine is on the JavaScript side and RSpec is on the Ruby side for example (I do believe that JavaScript is one of the best comparisons for PowerShell though, it being a scripting language and all). This blog post is meant as a quick […]