Keep the bar green to keep the code clean

Home  >>  Keep the bar green to keep the code clean

JUnit in a Nutshell: Test Runners

03 Sep 2014
The fourth chapter of my multi-part tutorial about JUnit testing essentials explains the purpose of the tool’s exchangable test runners architecture and introduces some of the available implementations. The ongoing example enlarges upon the subject by going through the different possibilities of writting parameterized tests. Since I have already published...

Travis: Continuous Integration for GitHub Projects

01 Sep 2014
In a recent project I got the opportunity to work with Travis, a lean, hosted continuous integration service used to build GitHub projects that is free to use for public repositiories. This post gives a brief introduction on how to build projects with Travis. Simple Setup Setting up Travis to...

JUnit in a Nutshell: Test Isolation

27 Aug 2014
Chapter three of my multi-part tutorial about JUnit essentials discusses the implications of unit dependencies for testing. The post illustrates the test isolation principle and shows how it can be put into practice – based on the nomenclature defined by Meszaros in xUnit Test Patterns [MES]. The ongoing example continues...

JUnit in a Nutshell: Test Structure

18 Aug 2014
Chapter two of my multi-part tutorial about JUnit testing essentials will continue the ongoing example and work out the common structure that charactarizes well written unit tests. The nomenclature used throughout this post was defined by Meszaros in xUnit Test Patterns [MES]. The Four Phases of a Test The tutorial’s...

JUnit in a Nutshell: Hello World

12 Aug 2014
JUnit in a Nutshell is a multi-part tutorial about the essentials of JUnit testing. This Hello World chapter introduces the very basics of a test: how it is written, executed and evaluated. The post also kicks off the ongoing example, which is continuously carried forward throughout this mini-series. Why bother?...

Clean JUnit Throwable-Tests with Java 8 Lambdas

28 Jul 2014
Recently I was involved in a short online discussion on twitter and google+ which concerned the question why the arrival of Java 8 Lambda expressions makes the catch-exception library1 obsolete. This was triggered by a brief announcement that the library won’t be longer maintained as lambdas will make it redundant....

A JUnit Rule to Run a Test in Its Own Thread

21 Jul 2014
In JUnit it could be occasionally helpful to run a test in its own thread. In particular when writing integration tests that interact with encapsulated ThreadLocals or the like this could come in handy. A separate thread would implicitly ensure that the thread related reference of the threadlocal is uninitialized...

Unleashing gonsole 1.0, a Git Console for Eclipse

14 Jul 2014
Over the last few weeks, Frank and I had some spare time. As summer hadn’t yet arrived in Germany, we decided to spend that time coding… What came out is Gonsole, a plug-in for the Eclipse IDE which provides a Git Console. The features that we originally intended to implement...

gonsole weeks: a git console for eclipse

09 Jul 2014
Even though Eclipse ships with a comprehensive Git tool, it seems that for certain tasks many developers switch to the command line. Because of that, Frank and I started to fill this gap a few weeks ago. If you are interested in what happened during this time you may want...
No more posts
No more posts