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

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.

A Set of Unit Testing Rules

February 17, 2011 0

A test is not a unit test if: * It talks to the database * It communicates across the network * It touches the file system * It can’t run at the same time as any of your other unit tests * You have to do special things to your environment (such as editing config files) to run it.

1 23 24 25 26 27