a Unit Testing Framework for Ruby - Test::Unit

Test::Unit

Test::Unit is a unit testing framework for Ruby.

Backward compatibility

Test::Unit 1.2.3 is the same version as bundled in Ruby 1.8.

test-unit 1.2.3 reference manual

Instal:

% sudo gem install test-unit -v 1.2.3

Usage:

require "rubygems"
gem "test-unit", "1.2.3"
require "test/unit"

Feature split

Test::Unit splits some packages by feature. e.g. GTK+ test runner is a different package.

Install:

% sudo gem install test-unit-runner-gtk2

Usage:

require "test/unit/runner/gtk2"

You can use --runner=gtk2 option to use GTK+ test runner.

Here are test-unit related packages.

test-unit

This package provides core feature.

test-unit: The latest release

2.1.2 is the latest release. It had been released at 2010-11-25.

test-unit: Install

Install:

% sudo gem install test-unit

test-unit-full

This is a meta package to use all extension packages described in the below.

test-unit-full: The latest release

0.0.2 is the latest release. It had been released at 2010-07-17.

test-unit-full: Install

Install:

% sudo gem install test-unit-full

Usage:

require "test/unit/full"

test-unit-notify

screenshot This package provides a test notifier.

test-unit-notify: The latest release

0.0.1 is the latest release. It had been released at 2010-07-17.

test-unit-notify: Install

Install:

% sudo gem install test-unit-notify

Usage:

require "test/unit/notify"

You can use --notify option to notify test result by popup at the end.

test-unit-gtk2

This package provides a GTK+ based test runner.

test-unit-gtk2: The latest release

0.0.1 is the latest release. It had been released at 2008-06-17.

test-unit-gtk2: Install

Install:

% sudo gem install test-unit-gtk2

Usage:

require "test/unit/runner/gtk2"

You can use --runner=gtk2 to run tests with GTK+ based test runner.

test-unit-tk

This package provides a Tk based test runner.

test-unit-tk: The latest release

0.0.1 is the latest release. It had been released at 2008-06-17.

test-unit-tk: Install

Install:

% sudo gem install test-unit-tk

Usage:

require "test/unit/runner/tk"

You can use --runner=tk to run tests with Tk based test runner.

test-unit-fox

This package provides a FOX Toolkit based test runner.

test-unit-fox: The latest release

0.0.1 is the latest release. It had been released at 2008-06-17.

test-unit-fox: Install

Install:

% sudo gem install test-unit-fox

Usage:

require "test/unit/runner/fox"

You can use --runner=fox to run tests with Fox toolkit based test runner.

For developers

Test::Unit welcome to your contributions.

Repositories

Test::Unit uses Subverseion repository on RubyForge. Here are a list to checkout each package.

test-unit
% svn co http://test-unit.rubyforge.org/svn/trunk test-unit
test-unit-full
% svn co http://test-unit.rubyforge.org/svn/extensions/test-unit-full/trunk test-unit-full
test-unit-notify
% svn co http://test-unit.rubyforge.org/svn/extensions/test-unit-notify/trunk test-unit-notify
test-unit-gtk2
% svn co http://test-unit.rubyforge.org/svn/extensions/test-unit-gtk2/trunk test-unit-gtk2
test-unit-tk
% svn co http://test-unit.rubyforge.org/svn/extensions/test-unit-tk/trunk test-unit-tk
test-unit-fox
% svn co http://test-unit.rubyforge.org/svn/extensions/test-unit-fox/trunk test-unit-fox