A Rails adapter for test-unit
Latest commit 3348ef9 Jan 21, 2017 @kou kou committed on GitHub Merge pull request #13 from yoshihara/use_kramdown_as_markdown_parser
Use kramdown as markdown parser

Patch by Haruka Yoshihara. Thanks!!!
Failed to load latest commit information.
doc doc: Update po Jan 20, 2017
gemfiles travis: test against both Rails 4 and 5 Dec 20, 2016
lib Bump version Dec 20, 2016
test test: fix wrong expected value May 20, 2016
.gitignore Ignore doc/po/ja/ directory Jan 20, 2017
.travis.yml travis: remove 2.4.0-rc1 Dec 20, 2016
.yardopts Use kramdown as Markdown parser Jan 20, 2017
COPYING create. Jan 2, 2012
Gemfile Suppress a warning message when bundle install May 16, 2014
README.md doc: Use markdown pre style instead of textile one Jan 20, 2017
test-unit-rails.gemspec Use kramdown as Markdown parser Jan 20, 2017



Web site


test-unit-rails is a Rails adapter for test-unit 3. You can use full test-unit 3 features, RR integration and Capybara integration with test-unit-rails.

Rails supports Test::Unit bundled in Ruby 1.8 and MiniTest but doesn't support test-unit 2. Rails with test-unit 2 works but is not fully worked.


Add the following codes to your Gemfile:

group :development, :test do
  gem 'test-unit-rails'

Update bundled gems:

% bundle update

Replace "require 'rails/test_help'" in your test/test_helper.rb with the following codes:

# require 'rails/test_help'
require 'test/unit/rails/test_help'

Now you can use full test-unit 3.x features, RR integration and Capybara integration.


LGPLv2.1 or later.

(Kouhei Sutou has a right to change the license including contributed patches.)


  • Kouhei Sutou
  • Haruka Yoshihara