Recent Posts

Writing and Using Custom Assertions for Pester Tests

10/31/2017  |    15 minute read

Pester, the awesome PowerShell testing framework has recently introduced a capability which allows us to extend our test assertions. This allows to simplify our tests by abstracting custom or complex assertion logic away from the tests and into separate scripts or modules.

Reducing whitespace in the HTML generated by Jekyll

09/08/2017  |    2 minute read

The output HTML of Jekyll-based sites may contain quite a lot a whitespace. This is especially noticeable with pages relying heavily on Liquid tags with conditional logic or looping.

Measuring PowerShell code complexity : Why and How

04/18/2017  |    16 minute read

Why does code complexity matter ? As Administrators or engineers, we deal with complexity all the time. We build, document, support and deploy complex systems on a pretty-much-daily basis. The expertise required to work with these systems is part of what makes us valuable. So why should we st...

Unit Testing with Pester : Storing complex Mock objects in a JSON file

02/14/2017  |    6 minute read

When unit testing with Pester, mocking is pretty much unavoidable, especially for code related to infrastructure, configuration, or deployment. We don’t want our unit tests to touch files, databases, the registry, and not to mention the internet, do we ?