The Negative Side of Mocking Tools

October 4, 2012 0

In this article, Brett Schuchert discusses how modern mocking tools affects positively our ability to work with legacy code and the possible negative implications of using mocking tools. These tools allow us to perform unit testing without actually changing the underlying code. He starts with a discussion about the challenges of unit testing and how mocking tools help to solve them; at least on the surface.

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.

1 124 125 126 127 128 171