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 […]
2013 in review
Posted by Johan Leino in Uncategorized on January 1, 2014
The WordPress.com stats helper monkeys prepared a 2013 annual report for this blog. Here’s an excerpt: The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 55,000 times in 2013. If it were a concert at Sydney Opera House, it would take about 20 sold-out performances for that many […]
TeamCity: custom agent requirements
Posted by Johan Leino in TeamCity on October 14, 2013
While I was working on another blog post I got to thinking about agent requirements. The reason was that I used PSGet to install a PowerShell module (Pester) onto the TeamCity agent server, i.e. I installed it globally. The downside of this approach was that I didn’t have a great story for knowing whether: the […]
Pester: Using TeamCity to run your tests
Posted by Johan Leino in PowerShell, TeamCity on October 14, 2013
I’ve previously written blog posts about Pester. The first one was a general purpose overview. The second one was about working with modules and Pester. The whole, original, purpose for me using Pester was to get a bit of quality around a PS module I’ve written called TSR. So the last part of the whole […]
PowerShell: Write-Verbose and Write-Debug without annoying word wrap
Posted by Johan Leino in PowerShell, TeamCity on October 9, 2013
Recently I ran into an issue with the PowerShell runner in TeamCity. I wanted to use the Write-Verbose and Write-Debug cmdlets to conditionally output some messages. However I discovered that the output in the build log was anything but what I originally had planned. The messages where “cut off” or word-wrapped so to say in […]
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 […]
TFS vs. Git…or is it TFS with Git?
Posted by Johan Leino in ALM on September 18, 2013
Maybe you ended up on this post because you searched for ‘Git vs. TFS’. I hope so. I have seen some debate going on for some time now in twitter about Git versus TFS (here are some examples): If that’s the case I think you’re looking at it from the wrong angle, so to say. […]