Tutorials and resources on how to apply unit testing in software testing

Stop Using Mocks

March 24, 2011 0

In this blog post, Karl Seguin explains why we should stop using mocks to reduce coupling and brittleness in our code.

Automating JavaScript Testing with QUnit

March 22, 2011 0

QUnit is a JavaScript test suite. It’s used by the jQuery project to test its code and plugins but is capable of testing any generic JavaScript code and even JavaScript code on the server-side. This article explores how to write unit tests with QUnit for Javascript.

Unit Testing from the Trenches

March 18, 2011 0

In this blog post, Sylvain Francois explores the differences between the best practices coming from “ivory towers” and reality of daily projects for unit testing.

Testing Databases with JUnit and Hibernate

March 14, 2011 0

This blog post discusses the problem of testing the database code. It describes some of the problems and proposes possible partial solutions to this testing issue based on Hibernate and JUnit.

Unit Testing in Java: Broad Assertion

February 28, 2011 1

Broad assertion cuts out too large a chunk of output and side effects for bit-to-bit comparison, which makes it harmful due to the resulting brittleness. The assertion fails if any small detail changes, regardless of whether that change is relevant to the interests of this particular test. In this article, based on chapter 4 of Unit Testing in Java, author Lasse Koskela explains how to refactor the tests that suffer from broad assertion.

1 23 24 25 26 27