Test-Driven Development of HTTP and REST interfaces with Mojasef

Test-Driven Development (TDD) of HTTP and REST interfaces can be tricky. This post contains some examples of how to do it using the open source Mojasef toolkit. I was prompted to write this post after recently finding and fixing an irritating bug using just this technique. First, let’s set the scene. In TDD the rules …

Continue reading ‘Test-Driven Development of HTTP and REST interfaces with Mojasef’ »

TDD and Test-Driven Refactoring

This is a neat observation. One equivalent to test-Driven Development (TDD) when working with an existing codebase might be “test-driven refactoring”. The idea seems to be that at any particular point in the lifecycle of a software system not all of the benefits of TDD are actually being used. So why not just do enough …

Continue reading ‘TDD and Test-Driven Refactoring’ »

Jay Fields’ Thoughts: Developer Testing and the Importance of Context

Sometimes it can be tricky to decide how to best write tests to express the correct information to potential readers and maintainers. In the general case this is true of all code, but the following article discusses some of these issues in the context of developer testing. Jay Fields’ Thoughts: Developer Testing and the Importance …

Continue reading ‘Jay Fields’ Thoughts: Developer Testing and the Importance of Context’ »