test-unit 2.4.7 has been released.
Install: gem install test-unit
test-unit is a testing framwork that improves Test::Unit
bundled in Ruby 1.8.x.
Ruby 1.9.x bundles minitest not Test::Unit. Test::Unit
bundled in Ruby 1.8.x had not been improved but unbundled
Test::Unit (test-unit) is improving actively.
Recommended require style is changed
We changed recommended require style.
Old recommended style:
New recommended style:
New recommended style can avoid mixed bundled Test::Unit and
unbundled Test::Unit (test-unit) load.
Supported code snippet around failure test
Here is a sample test that always fails:
class TestCodeSnippet < Test::Unit::TestCase
Here is a sample test result that includes code snippet:
% ruby /tmp/test-code-snippet.rb
Loaded suite /tmp/test-code-snippet
3: class TestCodeSnippet < Test::Unit::TestCase
4: def test_always_fail
=> 5: assert_equal(“Expected!”, “Actual!”)
<“Expected!”> expected but was
? Expected !
? A ual
It will be helpful to debug tests.