Writing Good Unit-Tests: A Step By Step Tutorial

A tutorial to help you write comprehensive unit-test suites.

Let’s imagine we just wrote a method calculating distance between two points on our planet. And let’s imagine we want to test it as well as possible. How do we come up with test cases? And what exactly do we need to test?

Continue reading “Writing Good Unit-Tests: A Step By Step Tutorial”

The Hunch: 4 Times I Felt It And 1 When I Didn’t, And What Were The Consequences

I sometimes have this feeling: The Hunch. It’s when I sense there is something wrong with the project, with the requirement, or with the feature, even when everyone else is sure all is well.

When I sense this, I feel like a dog who picked up the scent. I follow the scent by asking questions, until I get my answer.

Here’s how it happens.

Continue reading “The Hunch: 4 Times I Felt It And 1 When I Didn’t, And What Were The Consequences”