Over a million developers have joined DZone.

Introducing DZone's Latest Checklist: Unit Testing

DZone's Guide to

Introducing DZone's Latest Checklist: Unit Testing

· DevOps Zone ·
Free Resource

Open source vulnerabilities are on the rise. Read here how to tackle them effectively.

This week, DZone released its latest Checklist:

Unit Testing Checklist

By Jean-Baptiste Rieu

This checklist helps you ensure that your unit tests aren't missing the most essential attributes of good unit tests. Includes explanations and examples whenever checklist items don't explain themselves.


If you're interested in learning more about Unit Testing or sharpening your skills, we decided to dig into the DZone archives and find some of the most popular posts we've had on the topic over the past two years:

1. 5 Unit Testing Mistakes

  • When I first heard about unit testing using a framework like JUnit, I thought it was such a simple and powerful concept. Instead of ad hoc testing, you save your tests, and they can be run as often as you like. In my mind, the concept didn’t leave much room for misunderstanding. However, over the years I have seen several ways of using unit tests that I think are more or less wrong. Here are 5, in order of importance

2. Database unit testing with DBUnit, Spring and TestNG

  • I really like Spring, so I tend to use its features to the fullest. However, in some dark corners of its philosophy, I tend to disagree with some of its assumptions. One such assumption is the way database testing should work. In this article, I will explain how to configure your projects to make Spring Test and DBUnit play nice together in a multi-developers environment.

3. Unit Testing Best Practices: JUnit Reference Guide

  • Before writing this post, I am assuming that you know the basics of JUnit. If you do not have the basic knowledge, first read this link. Further, in this post, I will write the best practices you must consider before writing your test cases.

4. Unit Testing 101: Inversion Of Control

  • Inversion Of Control is one of the most common and widely used techniques for handling class dependencies in software development and could easily be the most important practice in unit testing. Basically, it determines if your code is unit-testable or not. Not just that, but it can also help improve significantly your overall software structure and design. But what is it all about? It is really that important? Hopefully we’ll clear those out on the following lines.

5. Unit Testing with Martin Fowler

  • Unit testing is often talked about in software development, and is a term that I've been familiar with during my whole time writing programs. Like most software development terminology, however, it's very ill-defined, and I see confusion can often occur when people think that it's more tightly defined than it actually is.

And don't forget to download the Unit Testing Checklist itself!

Learn about the ins and outs of open source security and management.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}