[Japanese] [English]


Title: Test::Unit::Benchmark - Unit testing with benchmark

1 What's new

1.1 [2006/01/19] 0.1 released

Initial release

2 Abstract

Test::Unit::Benchmark measures benchmarks of each test by Test::Unit.

% benchrb test/test-command.rb 
Loaded suite [test/test-command.rb, /home/rubikitch/ruby/test/unit/benchmark.rb]
Finished in 9.405327 seconds.

2 tests, 2 assertions, 0 failures, 0 errors

Benchmark Result
2.6119 secs: TestAptSary#test_cache
6.7922 secs: TestAptSary#test_file

Because this program is very short, it is an easy example of AspectR, aspect oriented programming for Ruby.

3 Environment

4 Install

Before installing this program, install Devel::Which and AspectR.

Please execute the following commands.

ruby -ropen-uri -e 'URI("http://www.rubyist.net/~rubikitch/archive/test-unit-benchmark-0.1.tar.gz").read.display' > test-unit-benchmark-0.1.tar.gz
tar xzvf test-unit-benchmark-0.1.tar.gz

When you failed, please download it from the next link.

Then, install it.

sudo ruby setup.rb

5 Usage

Current version only works with testrb. `benchrb' has same options as testrb.

benchrb a_test.rb

6 License


Back to Top

Valid XHTML 1.0!

Mail Form
Name Mail