TDD
-
Software Development
Mock Around the Clock
When I produced System Stubs I attempted, and failed, to produce a mock implementation for the system clock. It’s very…
Read More » -
Software Development
Why Most Unit Testing is Waste???
A rebuttal of points raised in this article by James O Coplien. It’s worth noting that James O Coplien is…
Read More » -
Software Development
All Our Assertion Problems
When our software outputs JSON, it can be hard to test. Consider this code: 1 2 assertThat(someJson) .isEqualTo(expectedJson); Assuming the…
Read More » -
Software Development
The Right Kind of Failure
Basic question: why do we write our tests first and make sure they go red? Answer: because it’s possible that…
Read More » -
Software Development
It Looks Right To Me
When writing a test it’s important to test both positive and negative scenarios. It’s important to test edge cases. However,…
Read More » -
Core Java
A Java Test Class Doesn’t Test a Class
If you write tests badly, you end up with a Curdled Test Fixture, where there’s an unholy mess of unrelated…
Read More » -
Core Java
So I Wrote a Library
If you’ve never done it, go out and find an open-source project to contribute to. Whether it’s one of your…
Read More » -
Software Development
Chasing The Dragon
Functions should, ideally return something. It makes them easier to test. Same for services in a service architecture. Bosh! Chasing…
Read More » -
Software Development
The Three Stages of Knowledge
In software development, knowing how to do things seems to fall into three stages. Ok… let’s pretend it does, it’s…
Read More »