Minitest
Minitest is a simple autotester intended to be used with rSpec, Test::Unit and rCov. It can be used with ‘plain’ Ruby projects and Ruby on Rails.
Recent changes
Version 0.3.1
Minitest gained support to test Test::Unit tests and RSpec specs at the same time.
Version 0.3.0
Minitest switched to a new file monitoring backend: DirMonitor. This makes it possible to track new files as they are created, without needing to restart minitest. The ‘recent’ feature was removed because DirMonitor does not (yet?) have a way to only yield files newer than some timestamp. This feature is likely to re-appear in a nearby future.
Installation
From gem
Use gem to install minitest. The gem is located on github.
sudo gem install Narnach-minitest -s http://gems.github.com
From git
From the project root, use rake to install:
git clone git://github.com/Narnach/minitest.git
cd minitest
rake install
This will build the gem and install it for you.
Usage
Minitest has the following command line options:
- profile
-
Force rspec output format to ‘profile’, combined with coloured output and unified diffs.
- drb
-
Use a spec server to execute specs, speeding up their execution.
Examples
When you start working on a codebase, it makes sense to run all specs:
minitest
When you want to see which specs are slow and could use optimizing:
minitest profile
You can also combine options:
minitest drb profile
Todo / ideas / plans
-
Figure out how to get RCov to run specs and tests at the same time and implement it.
-
Add ‘recent’ option (was removed in 0.3.0).
-
Write tests for Minitest class.
About
- Author
-
Wes ‘Narnach’ Oldenbeuving ([email protected])
- Website
- Copyright
-
Copyright © 2008 Wes Oldenbeuving
- License
-
MIT license. See MIT-LICENSE (in the gem directory) for license details.