Test-Driven Development with PHPUnit

September 27, 2012 0

PHPUnit is a unit testing software framework for PHP. It provides both a framework that makes writing unit tests easy as well as the functionality to easily run the tests and analyze their results. This video shows you how to build a relatively simple class, using TDD techniques. It also discusses various PHPUnit methods and explains how to create mock objects.

Isolating Code under Test with Microsoft Fakes

September 26, 2012 0

This article explains how Microsoft Fakes perform a similar role than mocking in unit testing, helping you to isolate the code you are testing in Visual Studio by replacing other parts of the application with stubs or shims. A stub replaces another class with a small substitute that implements the same interface. A shim modifies the compiled code of your application at run time so that instead of making a specified method call, it runs the shim code that your test provides.

Promoting a Sustainable Software Testing Culture on Social Coding Sites

September 25, 2012 0

Many software development projects struggle with creating and communicating a software testing culture that is appropriate for their needs, which might decrease software quality by leaving bugs undiscovered. Previous research suggests that social coding sites such as GitHub provide a collaborative environment with a high degree of social transparency. This makes developers’ actions and interactions more visible and trackable.

Sensible Testing

September 20, 2012 0

Most Ruby programmers spend significant time writing, maintaining and troubleshooting automated tests. While recent discussions in the Ruby community have focused on whether we’re writing too few or too many tests, this talk looks at how we can write “sensible” tests that allow our applications to deliver the most possible value with the least amount of development time and effort.

Unit Testing Cheat Sheet

September 19, 2012 2

Andrew Hunt and David Thomas have produced a nice Unit Testing Cheat Sheet (PDF document) based on the unit testing principles introduced in their book Pragmatic Unit Testing in Java. This document contains the Right-BICEP hint to determine what to test, the A-TRIP acronym that help remembering the properties of good tests and the CORRECT approach to assess boundary conditions in software testing.

Fakes: Isolating Unit Tests

September 12, 2012 0

Replace any .NET method with your own delegate! “Fakes” is a new framework in Visual Studio 11 for test stubs and detours in .NET. Fakes may be used to detour any .NET method, even in tough situations like static methods, non-virtual methods, private methods, constructors, etc… If you’ve been a user of Moles, Fakes is a lot like Moles but different so come and learn about the changes coming ahead too.

JavaScript Unit Testing with QUnit and JS Test Driver in Eclipse

September 12, 2012 0

Bradley Braithwaite shares in his blog a step by step process to perform JavaScript unit testing in the Eclipse IDE with QUnit and JS Test Driver. QUnit is a powerful, easy-to-use, JavaScript test suite. It’s used by the jQuery project to test its code and plugins but is capable of testing any generic JavaScript. The goal of Js Test Driver is to build a JavaScript test runner that easily integrates with continuous builds systems and allows running tests on multiple browsers quickly to ease TDD style development. Starting from the opening of the Eclipse IDE to writing the tests, everything is explained with code examples. Bradley adds also at the end some productivity improvement tips like code template or avoiding the browser. He also recommends using a tool like JSLint or JSHint to manage code quality. JSLitmus is recommended to profile JavaScript code for performance tuning.

1 2