“The success as a platform encumbered its evolution as a tool”. Java’s most ubiquitous library is getting an update! And this is the time to see what’s new and weigh in on its course. We caught up with Nicolai Parlog at Devoxx BE 2016 to talk about the changes we can expect in JUnit 5, the […]

Read more

This article was originally published over at the Codurance blog. Outside-in Test-Driven Development (TDD) can be a challenge to implement. In this 3-part post series, Christian and I would like to share our experiences applying it to Android development and offer some practical tips for doing so yourself. In this first post of the series […]

Read more

This is a 15 minute overview of Mutation Testing and how to set up a basic example. What is Mutation Testing? Imagine you have unit tests. There are good unit tests, and bad unit tests. Bad unit tests are superficial tests to boost your test coverage, and don’t necessarily cover every line of code. Consider […]

Read more

Now that we know how to set JUnit 5 up and write some tests with it, let’s take a look under the covers. In this post we’ll discuss the JUnit 5 architecture and the reasons why it turned out the way it did. Overview This post is part of a series about JUnit 5: Setup […]

Read more

Last time, we set up JUnit 5 to be able to write tests. So let’s do it! Overview This post is part of a series about JUnit 5: Setup Basics Architecture Conditions Injection … Most of what you will read here and more can be found in the emerging JUnit 5 user guide. Note that it […]

Read more

So, in case you haven’t read the first part in this series, which is giving some basic introduction to the idea of JUnit testing – go ahead, I’ll wait till you’re back so that we can proceed with the next steps. Yes, I’ve got the basics, go on, I hear you say.  Great. Let’s now proceed […]

Read more

This is a guest post from Andrew Morgan, Consultant at OpenCredo. In order to be able to regularly release an application, your automated tests must be set up to give you fast and reliable feedback loop. If bugs are only found during a long and expensive multi-service or end-to-end test run, it can be a […]

Read more

JUnit is a great Java library we can use to test our application code.  Let’s get started by building a simple project using Maven. Generating a project with JUnit support Generating a simple Java artifact using Maven can be done quite easily using command line: mvn archetype:generate -DgroupId={GROUP_ID} -DartifactId={ARTIFACT_ID} -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false Just execute the upper line in your console, giving it […]

Read more

In November 2015 the JUnit Lambda team presented their prototype. Since then the project rebranded itself as JUnit 5 and released an alpha version in February 2016. We’ll explore it in a series of short posts: Setup Basics Architecture Conditions Injection … This one discusses the JUnit 5 setup so you can write code against […]

Read more

Crowdfunding has been utilised to back everything from the construction of potato salad to effigies of Lionel Ritchie. This week however, we were particularly surprised to see a JVM-centric campaign pop up: JUnit Lambda, which is aiming to raise 25,000 EUR to push forward the development of the popular Java testing library. With no formal paid support in place, […]

Read more