From kou at cozmixng.org Thu Feb 9 22:17:33 2012 From: kou at cozmixng.org (Kouhei Sutou) Date: Fri, 10 Feb 2012 12:17:33 +0900 (JST) Subject: [test-unit-users-en:00067] [ANN] test-unit 2.4.7 Message-ID: <20120210.121733.525581315989324435.kou@cozmixng.org> 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 2.4.7 $(Q#|(B 2012-2-10 ----------------- It's a code snippet improvement release. Improvements ^^^^^^^^^^^^ * Supported code snippet display on all faults. 2.4.6 $(Q#|(B 2012-2-9 ---------------- It's a TAP runner separated release. Improvements ^^^^^^^^^^^^ * Moved TAP runner to test-unit-runner-tap gem from test-unit gem. * Supported code snippet display on failure. Thanks, -- kou