In the previous posts we had a look at sinon spies and stubs. There is one more technique we can … More

# Tag: unit tests

# Using sinon stubs

In the previous post we had a look at sinon spies. With spies, we are able to determine if a … More

# Using sinon spies

In the previous post, we implemented a new feature for our calculator: it makes a bell sound when you divide … More

# The division by zero bell – Dependencies in unit tests

We left our calculator in the previous post in a decent state, being able to do the four basic mathematical … More

# What is code coverage?

Last time we had a look at test driven development and our calculator learned how to do multiplication. In this … More

# What is Test Driven Development?

Let’s continue building up our calculator with more mathematic operations. So far we have addition and subtraction, so multiplication comes … More

# A closer look to a basic unit test

In the previous post we started writing a basic Calculator class and added the first unit test. Let’s have a … More

# What is a unit test and why should I care?

So, let’s start with some basics. What is a unit test? A unit test is a piece of code that … More

# When developers cannot unit test

Unit tests is an essential method of ensuring quality and predictability of software. In my current work, we have been going … More