test-unit/test-unit — Issue #15: require 'test-unit'
Author: trans
Created: 2012-02-03 22:34:49+00:00
State: open

I'd like to advise the project to change it's standard require from `test/unit` to `test-unit`, as well as change it's command line tool from `testrb` to `testunit` or `testunitrb`.

The reason I suggest this is b/c the lack of thoughtfulness on this matter by the Ruby project transition form TestUnit in 1.8 to MiniTest in 1.9 is rather appalling and has caused all sorts of issues for anyone actually trying to use Test::Unit 2.

For instance I can't get `testrb` to work on my system at all b/c it either runs the one included with Ruby or it runs the right once, but as it lacks `gem 'test-unit'` it load the wrong library. Likewise I have the issue with putting `require 'test/unit'` in my test helper b/c of the same issue --we shouldn't have to use the gem method. It further cause some issue with the load manager I use for development. It's an all around pain in the ass. And I have no doubt these issues have helped scare away potential users.

Now honestly I think responsibility lies with the Ruby project itself for not removing test/unit and testrb from Ruby 1.9 --if they want to go with a test framework they should accept the full consequences of that transition. (Not to mention the shortcomings of Ruby's load system). But that obviously isn't going to happen, so I would recommend that TestUnit itself switch to variant names. There could live along side the originals, so no one need be effected that already uses them.