Sunday, 29 March 2015

Running NUnit tests with Jenkins

In this series: Getting started with Jenkins, Git and MSBuild Automatically triggering a Jenkins build on Git commit Running NUnit tests with Jenkins (this post) At the time of writing Jenkins is at version 1.602. Following on from my previous post - Automatically triggering a Jenkins build on Git commit - the next step is to automatically run unit tests as part of the build. My unit tests are written using NUnit. As with everything in Jenkins getting unit tests to run as part of a build is a fairly...

How to update Chocolatey

I’ve recently started using Chocolatey - a package manager for Windows – to install tools and applications. If you’re not familiar with Chocolatey it’s described thus: “Chocolatey is a package manager for Windows (like apt-get or yum but for Windows). It was designed to be a decentralized framework for quickly installing applications and tools that you need. It is built on the NuGet infrastructure currently using PowerShell as its focus for delivering packages from the distros to your door, err...

Saturday, 28 March 2015

Using ApprovalTests to test a simple logging framework

I’ve been playing with a simple logging framework that I’ve had lying around for ages and thought I’d add an NLog implementation just for kicks and giggles. It also gave me an opportunity to play with the ApprovalTests framework by Llewellyn Falco. Very briefly ApprovalTests lets you compare output generated during a test with a predefined example. If they differ the test fails. In this case I wanted to verify that a log file generated during a the execution of a unit test matched an example log...

Sunday, 15 March 2015

Automatically triggering a Jenkins build on Git commit

In this series: Getting started with Jenkins, Git and MSBuild Automatically triggering a Jenkins build on Git commit (this post) Running NUnit tests with Jenkins   Following on from my previous post, Getting started with Jenkins, Git and MSBuild, the next step is to get Jenkins to build whenever I commit changes to a local Git repository. Option1 – Polling the repository Now, it is possible to setup a Build Trigger to get Jenkins to poll for changes in a Git repository. You do this using...

Live Writer can’t login to Blogger

I have been struggling to get Live Writer to login to Blogger so I can publish posts like this one. Every time I tried to publish I got a login failure. The answer was simple. I have changed the security on my Google account to use 2-Step verification, something an application like Live Writer can’t do. The answer is to use ‘App passwords’. A full explanation can be found here: https://support.google.com/accounts/answer/185833 I added an App password for Live Writer and everything works again. Update...

Getting started with Jenkins, Git and MSBuild

In this series: Getting started with Jenkins, Git and MSBuild (this post) Automatically triggering a Jenkins build on Git commit Running NUnit tests with Jenkins I recently changed jobs and at the new place we are using Jenkins for continuous integration. We are also transitioning to Git from Subversion for source control. I’ve used CruiseControl.Net and Team City before but Jenkins is new to me so I thought it would be interesting to replace my Team City installation at home with Jenkins so I...