From kou at cozmixng.org Thu Jul 5 13:28:28 2012 From: kou at cozmixng.org (Kouhei Sutou) Date: Thu, 05 Jul 2012 22:28:28 +0900 (JST) Subject: [test-unit-users-en:00081] [ANN] test-unit 2.5.1 Message-ID: <20120705.222828.1525795231211744118.kou@cozmixng.org> Hi, test-unit 2.5.1 has been released. Web: http://test-unit.rubyforge.org/#test-unit Install: gem install test-unit Description: test-unit is an improved version of 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 improved actively. About this release: test-unit 2.4.9 and 2.5.0 have a bug that expected value and actual value are not displayed in some cases. I recommend that 2.4.9 and 2.5.0 users upgrade to 2.5.1. Changes: http://test-unit.rubyforge.org/test-unit/en/file.news.html#2-5-1 h2(#2-5-1). 2.5.1 - 2012-07-05 It's a bug fix release. h3. Improvements * Supported installing from GitHub. [GitHub#29] [Suggested by Michael Grosser] * Supported ActiveSupport::TestCase. [GitHub#30] [Reported by Michael Grosser] * [ui][console] Improved multiline falut message display. h3. Fixes * [ui][console] Fixed a bug that expected and actual values are empty. [GitHub#31][GitHub#33] [Reported by Kendall Buchanan][Reported by Mathieu Martin] [Hinted by Michael Grosser] * Fixed a bug that .gemspec can't be loaded on LANG=C. [RubyForge#29595] [Reported by Jean-Denis Koeck] h3. Thanks * Michael Grosser * Kendall Buchanan * Mathieu Martin * Jean-Denis Koeck Thanks, -- kou From kou at cozmixng.org Thu Jul 5 13:34:00 2012 From: kou at cozmixng.org (Kouhei Sutou) Date: Thu, 05 Jul 2012 22:34:00 +0900 (JST) Subject: [test-unit-users-en:00082] [ANN] test-unit-rails 1.0.2 Message-ID: <20120705.223400.1404989349863104177.kou@cozmixng.org> Hi, test-unit-rails 1.0.2 had been released! Web: http://test-unit.rubyforge.org/#test-unit-rails Install: http://test-unit.rubyforge.org/#test-unit-rails-install Description: test-unit-rails is a Rails adapter for test-unit 2. You can use full test-unit 2 features, RR integration and Capybara integration with test-unit-rails. Rails supports Test::Unit bundled in Ruby 1.8 and MiniTest but doesn't suppot test-unit 2. Rails with test-unit 2 works but is not fully worked. About this release: Bundler 1.2.0.pre.1 is supported. If you want to use test-unit 2 with Rails and Bundler 1.2.0.pre.1, please use this version. Note that this version changed require path to support Bundler 1.2.0.pre.1. You should require "test/unit/rails/test_help" instead of "test/unit/rails". Changes: http://test-unit.rubyforge.org/test-unit-rails/en/file.news.html#1-0-2 h2(#1-0-2). 1.0.2 - 2012-07-05 h3. Improvements * Supported Bundler 1.2.0.pre.1. [GitHub#1] [Reported by Michael D.W. Prendergast] h3. Thanks * Michael D.W. Prendergast Thanks, -- kou From djberg96 at gmail.com Thu Jul 12 14:26:46 2012 From: djberg96 at gmail.com (Daniel Berger) Date: Thu, 12 Jul 2012 08:26:46 -0600 Subject: [test-unit-users-en:00083] Strange wrong number of arguments error Message-ID: Hi, ruby 1.9.3p194 (2012-04-20) [i386-mingw32] test-unit 2.5.1 Windows XP and 7 I'm seeing these errors at the end of a "rake test". It doesn't seem to affect the actual running of the tests or the results, just shows up after the runner has finished. Any ideas? Finished in 0.641199 seconds. 125 tests, 632 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed 194.95 tests/s, 985.65 assertions/s (eval):2:in `send': wrong number of arguments (2 for 4) (ArgumentError) from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/testcase.rb:569:in `block in handle_exception' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/testcase.rb:568:in `each' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/testcase.rb:568:in `handle_exception' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/testcase.rb:337:in `rescue in ensure in run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/testcase.rb:334:in `ensure in run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/testcase.rb:334:in `run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/testsuite.rb:117:in `run_test' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/testsuite.rb:53:in `run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/testsuite.rb:117:in `run_test' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/testsuite.rb:53:in `run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnermediator.rb:93:in `run_suite' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnermediator.rb:43:in `block in run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnermediator.rb:82:in `with_listener' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnermediator.rb:39:in `run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/ui/testrunner.rb:40:in `start_mediator' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/ui/testrunner.rb:25:in `start' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnerutilities.rb:24:in `run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/autorunner.rb:378:in `block in run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/autorunner.rb:434:in `change_work_directory' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/autorunner.rb:377:in `run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit/autorunner.rb:58:in `run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/test-unit-2.5.1/lib/test/unit.rb:330:in `block in ' rake aborted! Command failed with status (1): [C:/Ruby193/bin/ruby.exe -w -I"lib" -I"C:/R...] Tasks: TOP => default => test:all (See full trace by running task with --trace) From kou at cozmixng.org Fri Jul 13 12:41:35 2012 From: kou at cozmixng.org (Kouhei Sutou) Date: Fri, 13 Jul 2012 21:41:35 +0900 (JST) Subject: [test-unit-users-en:00084] Re: Strange wrong number of arguments error In-Reply-To: References: Message-ID: <20120713.214135.320434618738541833.kou@cozmixng.org> Hi, In "[test-unit-users-en:00083] Strange wrong number of arguments error" on Thu, 12 Jul 2012 08:26:46 -0600, Daniel Berger wrote: > I'm seeing these errors at the end of a "rake test". It doesn't seem > to affect the actual running of the tests or the results, just shows > up after the runner has finished. > > Any ideas? Could you provide a test script that reproduces the problem? I want to try it on my environment. Thanks, -- kou From djberg96 at gmail.com Fri Jul 13 16:39:59 2012 From: djberg96 at gmail.com (Daniel Berger) Date: Fri, 13 Jul 2012 10:39:59 -0600 Subject: [test-unit-users-en:00085] Re: Strange wrong number of arguments error In-Reply-To: <20120713.214135.320434618738541833.kou@cozmixng.org> References: <20120713.214135.320434618738541833.kou@cozmixng.org> Message-ID: Hi, On Fri, Jul 13, 2012 at 6:41 AM, Kouhei Sutou wrote: > Hi, > > In > "[test-unit-users-en:00083] Strange wrong number of arguments error" on Thu, 12 Jul 2012 08:26:46 -0600, > Daniel Berger wrote: > >> I'm seeing these errors at the end of a "rake test". It doesn't seem >> to affect the actual running of the tests or the results, just shows >> up after the runner has finished. >> >> Any ideas? > > Could you provide a test script that reproduces the problem? > I want to try it on my environment. Probably the easiest thing to do would be to checkout the windows-pr project if you're on Windows (or have a VM), then run "rake". git clone git://github.com/djberg96/windows-pr.git I have the old test/unit directory renamed, so it -should- only be picking up test-unit 2. Here's the --trace output from rake: c:/usr/lib/ruby/1.9.1/rake/file_utils.rb:53:in `block in create_shell_runner' c:/usr/lib/ruby/1.9.1/rake/file_utils.rb:45:in `call' c:/usr/lib/ruby/1.9.1/rake/file_utils.rb:45:in `sh' c:/usr/lib/ruby/1.9.1/rake/file_utils_ext.rb:39:in `sh' c:/usr/lib/ruby/1.9.1/rake/file_utils.rb:82:in `ruby' c:/usr/lib/ruby/1.9.1/rake/file_utils_ext.rb:39:in `ruby' c:/usr/lib/ruby/1.9.1/rake/testtask.rb:99:in `block (2 levels) in define' c:/usr/lib/ruby/1.9.1/rake/file_utils_ext.rb:60:in `verbose' c:/usr/lib/ruby/1.9.1/rake/testtask.rb:98:in `block in define' c:/usr/lib/ruby/1.9.1/rake/task.rb:205:in `call' c:/usr/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute' c:/usr/lib/ruby/1.9.1/rake/task.rb:200:in `each' c:/usr/lib/ruby/1.9.1/rake/task.rb:200:in `execute' c:/usr/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain' c:/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' c:/usr/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain' c:/usr/lib/ruby/1.9.1/rake/task.rb:176:in `block in invoke_prerequisites' c:/usr/lib/ruby/1.9.1/rake/task.rb:174:in `each' c:/usr/lib/ruby/1.9.1/rake/task.rb:174:in `invoke_prerequisites' c:/usr/lib/ruby/1.9.1/rake/task.rb:157:in `block in invoke_with_call_chain' c:/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' c:/usr/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain' c:/usr/lib/ruby/1.9.1/rake/task.rb:144:in `invoke' c:/usr/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task' c:/usr/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in top_level' c:/usr/lib/ruby/1.9.1/rake/application.rb:94:in `each' c:/usr/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level' c:/usr/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling' c:/usr/lib/ruby/1.9.1/rake/application.rb:88:in `top_level' c:/usr/lib/ruby/1.9.1/rake/application.rb:66:in `block in run' c:/usr/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling' c:/usr/lib/ruby/1.9.1/rake/application.rb:63:in `run' c:/usr/bin/rake.bat:39:in `
' Regards, Dan