tips&tricks

Rubber Duck Not Only For Code Reviews

We all know that rubber duck is programmer's best friend (it was also proven that such duck should be yellow for maximum effect). Not surprisingly I have also a yellow toy on my desk. But it is not a duck. It is a little yellow human-like figure.

 

Refactoring Time-Related Test

This is a short story of a bad "refactor" of test code. In Poland we say, that "dobrymi chęciami piekło brukowano", which basically means, that trying to do something good can lead to really bad results. Well, I tried to do something good and I failed. Let us take a closer look.

 

Sign your work

Few days ago I learned a very simple, yet powerful trick which saved me some time. To make long story short, it happened on a test environment shared between few projects.

 

Finding Latest Versions of Dependencies With Maven

From time to time it is good to see what are the latest versions of the libraries you use (because maybe you would like to upgrade). With Maven you can use the Versions Maven Plugin, but you will get better results if you add a simple bash script. Let me show you how.

 

Testing Google Guava EventBus

Recently I have used Google Guava EventBus in one of my projects. It worked pretty well but testing it was kind of a challenge.

If you are not familiar with the EventBus you can learn more about it here.

 

4 Cool Online Tools

It amazes me how many great tools you can find on the web! In this post I describe 4 of them. I hope you find them useful.

 

Avoid Unnecessary Builds with Jenkins, Maven and SVN

Sooner or later your CI server will became very busy, and your frustration will grow because of increasing wait time for each build. One thing you can do to improve the situation is to avoid running jobs when there is no need to do so.

I use Jenkins + Maven + SVN in this example, but you can use this "tricks" also when using different technologies - Gradle, Git etc.

 

You Shall Not Test Methods

When discussing unit tests it often happen that I hear that "unit testing is about testing methods". I do not agree, and because this is something which surfaces here and there so I think the idea deserves a comment.

 

Failed Build? Never Again!

Oh, a failed test again! And not on your local machine but on the CI server! What to do, oh, what to do?!

 

Test Code Comments

Should you put comments in your tests code? Yes? No? Why?

 
Please comment using
 
Syndicate content