Posts about techniques, tools and tips for better software testing.

Error assertions

26 Apr 2025 testing go

When writing a Go test, don’t just assert that an error occurred - assert that the error you have is the one you expect.

Wither convention testing

14 Dec 2019 wordtutor-redux csharp testing

Following on from our previous post on convention testing we can extend the conventions by considering the standards we want to follow when we write methods on our immutable types.

Convention testing for immutable types

30 Nov 2019 wordtutor-redux csharp testing

The Redux architecture we’re using for our application state relies on all our state objects being properly immutable. So far, we’ve relied on nothing more than self-discipline to ensure no mistakes are made. By adding some convention testing to our project, we can enlist some help in avoiding common errors.

Integration Testing

20 Jul 2019 wordtutor-redux csharp testing

In addition to the unit tests we’re already writing for each of our core classes, we should also write some integration tests to ensure our types interact properly.

The curious case of the test that wouldn't run

9 Dec 2017 testing

The first symptom I noticed was when some of my unit tests wouldn’t run inside Visual Studio 2017. This wasn’t a simple case where a particular test failed, rather the problem was that the test wouldn’t run at all.

Getting Started with FsCheck

1 Jul 2017 testing

Can we just ignore the fact that the Getting Started post is my third in the series on FsCheck? This is what happens when I just start blogging about interesting things without planning out the series of posts in advance.