10 Feb 04:19
[ANN] test-unit 2.4.7
Kouhei Sutou <kou <at> cozmixng.org>
2012-02-10 03:19:26 GMT
2012-02-10 03:19:26 GMT
Hi, test-unit 2.4.7 has been released. Web: http://test-unit.rubyforge.org/#test-unit Install: gem install test-unit Description: 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. Highlights: Recommended require style is changed We changed recommended require style. Old recommended style: gem "test-unit" require "test/unit" New recommended style: require "test-unit" 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: require "test-unit" class TestCodeSnippet < Test::Unit::TestCase def test_always_fail assert_equal("Expected!", "Actual!") end end Here is a sample test result that includes code snippet: % ruby /tmp/test-code-snippet.rb Loaded suite /tmp/test-code-snippet Started F =============================================================================== Failure: test_always_fail(TestCodeSnippet) /tmp/test-code-snippet.rb:5:in `test_always_fail' 2: 3: class TestCodeSnippet < Test::Unit::TestCase 4: def test_always_fail => 5: assert_equal("Expected!", "Actual!") 6: end 7: end <"Expected!"> expected but was <"Actual!"> diff: ? Expected ! ? A ual =============================================================================== ... It will be helpful to debug tests. Changes: http://test-unit.rubyforge.org/test-unit/en/file.news.html#2-4-7 Thanks, -- kou
RSS Feed