testdriven.com Wrangling quality out of chaos

Archive for January, 2009

Announcing Trinidad: In-process test runner for FitNesse wiki pages

01.26.2009 · Posted in Advisories

The first public beta release of Trinidad is now available. Trinidad is an in-process test runner for FitNesse wiki pages/tests. Here are some nice things you can do with it:

– run fitnesse fit and slim tests without starting the server as part of your build
– run fitnesse tests from JUnit within your IDE
– debug and troubleshoot fitnesse fixtures as if you were working with unit tests
– easily include fitnesse acceptance tests into your build (through JUnit)
– easily run tests in transactions and roll back after each test (with Spring)

For download links, usage instructions and more information, click here.

MockFtpServer 2.0 (final) Released

01.14.2009 · Posted in Advisories

The MockFtpServer project provides a mock/dummy FTP server implementations that can be very useful for testing of FTP client code.
MockFtpServer version 2.0 includes a new "fake" implementation of an FTP server. It provides a high-level abstraction for an FTP Server and is suitable for most testing and simulation scenarios. You define a virtual filesystem (internal, in-memory) containing an arbitrary set of files and directories. These files and directories can (optionally) have associated access permissions. You also configure a set of one or more user accounts that control which users can login to the FTP server, and their home (default) directories. The user account is also used when assigning file and directory ownership for new files.

FakeFtpServer processes FTP client requests and responds with reply codes and reply messages consistent with its configured file system and user accounts, including file and directory permissions, if they have been configured.

Here is an example showing configuration and starting of an FakeFtpServer with a single user account and a (simulated) Windows file system, defining a directory containing two files. If you wish, you can define a Unix file system, instead.

// Create the server and add a user account
FakeFtpServer fakeFtpServer = new FakeFtpServer();
fakeFtpServer.addUserAccount(new UserAccount("user", "password", "c:\\data"));

// Set up the Windows filesystem
FileSystem fileSystem = new WindowsFakeFileSystem();
fileSystem.add(new DirectoryEntry("c:\\data"));
fileSystem.add(new FileEntry("c:\\data\\file1.txt", "abcdef 1234567890"));
fileSystem.add(new FileEntry("c:\\data\\run.exe"));


Behavior Driven Database Development

01.12.2009 · Posted in Links

This article shows how the behavior driven development can be applied to database development and how it can be used to develop and design databases in an iterative and incremental way, writing code and test in the same time.

JMUnit: J2ME unit testing tool

01.01.2009 · Posted in Links

The JMUnit is a Java ME (or J2ME) application used by developers to test code. It’s an implementation of the popular xUnit framework.

JMUnit 1.1 has been released. It allows test failures and errors to be viewed on real devices (not just the emulator console). An Ant task for JMUnit has been added that generates XML reports that can be rendered by the <junitreport> Ant task.

JMUnit 1.2 is included in the Eclipse MTJ 0.9.1 plugin and in Netbeans 6.5. JMUnit 1.2 adds additional support for Ant and classes for performance monitoring.


Testing WCF Service Applications (Part 3 of 4) — Mocking the Async Service

01.01.2009 · Posted in Articles

Up to this point, we have tested the service and we have tested the client — both in isolation. We have written unit tests and our code has good coverage. Unfortunately, my clients are not always synchronous. In Silverlight client, for instance, the framework will not permit you to make synchronous service requests. As it turns out, writing tests for asynchronous service clients is not straight-forward. Thankfully, there are some hacks that you can take advantage of to write effective asynchronous tests.

Testing WCF Service Applications (3 of 4) — Mocking the Asynchronous Service

Ruby on Rails TDD Boot Camp

01.01.2009 · Posted in Links

For those of you interested in learning Rails, we have scheduled our next Ruby on Rails TDD Boot Camp for Feb 2-5, 2009 in Chicago.

The course is for experienced programmers learning Ruby and Rails. The material is taught using TDD and has a 1/2 day dedicated to TDD theory and practice in Ruby. At the end of the course, you will be pretty comfortable "thinking" in TDD.

You can visit here for details:


Kevin P. Taylor

//obtiva – Agility Applied. Software Delivered.