Home » Tag Archives: Testing (page 11)

Tag Archives: Testing

TDD Is Dead? Let’s Kill The Messenger Instead!

software-development-2-logo

David H. Hansson (@DHH) sparked the “TDD being dead”  latest twitter storm. DHH is no stranger to controversy, and he certainly picked the right title for it. Of course, the responses followed immediately. and most of them fell directly into his trap. Most people were defending TDD. How? By saying that Ruby on Rails (originally authored by DHH) was built ...

Read More »

What Is A Unit Test?

software-development-2-logo

What make unit tests different than other tests? They are full of FAIL. Going to the Wikipedia  definition, you’ll get a vague and unhelpful description, and to summarize: It tests a small piece of code. In  what language? What is small? And why does that matter?     I feel that many times in software, we’d rather concentrate on the ...

Read More »

Three Reasons Why We Should Not Use Inheritance In Our Tests

software-development-2-logo

When we write automated tests (either unit or integration tests) for our application, we should notice pretty soon that Many test cases use the same configuration which creates duplicate code. Building objects used in our tests creates duplicates code. Writing assertions creates duplicate code. The first thing that comes to mind is to eliminate the duplicate code. As we know, ...

Read More »

Spring test with thymeleaf for views

spring-interview-questions-answers

I am a recent convert to thymeleaf for view templating in Spring based web applications, preferring it over jsp’s. All the arguments that thymeleaf documentation makes on why thymeleaf over jsp holds water and I am definitely sold. One of the big reasons for me, apart from being able to preview the template, is the way the view is rendered ...

Read More »

Yet another way to handle exceptions in JUnit: catch-exception

junit-logo

There are many ways of handling exceptions in JUnit (3 ways of handling exceptions in JUnit. Which one to choose?, JUnit ExpectedException rule: beyond basics). In this post I will introduce catch-exception library that I was recommended to give a try. In short, catch-exceptions is a library that catches exceptions in a single line of code and makes them available ...

Read More »

A Docker Maven Plugin for Integration Testing

docker-logo

What is Docker? Docker is the buzzword that is taking the DevOps world. If you don’t know yet what is Docker, be warned, you will find yourself using it one way or another very soon. The rest of this post assumes some basic understanding of Docker, but if you are not familiar with it now, I’m sure you will come ...

Read More »

How (NOT TO) measure latency

software-development-2-logo

Latency is defined as time interval between the stimulation and response and is a value which is of importance in many computer systems (financial systems, games, websites, etc). Hence we – as computer engineers – want to specify some upper bounds / worst case scenarios for the systems we build. How can we do this? The days of counting cycles ...

Read More »

Are integration tests worth the hassle?

software-development-2-logo

Whether or not you write integration tests can be a religious argument: either you believe in them or you don’t. What we even mean by integration tests can lead to an endless semantic argument. What do you mean? Unit tests are easy to define they test a single unit: a single class, a single method, make a single assertion on the behaviour ...

Read More »

What are Mockito Extra Interfaces?

mockito-logo

Mockito is my favored little helper if it comes down to write light weight JUnit tests. It is very useful to replace the ‘real’ dependencies of a unit under test easily by mocks if necessary. In particular when working on the borderline to framework APIs such dependencies can otherwise be very expensive to setup. But sometimes the situation is a ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close