Forum: Ruby ZenTest 4.1.0 Released

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5a837592409354297424994e8d62f722?d=identicon&s=25 Ryan Davis (Guest)
on 2009-06-03 10:25
(Received via mailing list)
ZenTest version 4.1.0 has been released!

* <http://www.zenspider.com/ZSS/Products/ZenTest/>
* <http://rubyforge.org/projects/zentest/>
* <ryand-ruby@zenspider.com>

ZenTest provides 4 different tools: zentest, unit_diff, autotest, and
multiruby.

ZenTest scans your target and unit-test code and writes your missing
code based on simple naming rules, enabling XP at a much quicker
pace. ZenTest only works with Ruby and Test::Unit. Nobody uses this
tool anymore but it is the package namesake, so it stays.

unit_diff is a command-line filter to diff expected results from
actual results and allow you to quickly see exactly what is wrong.

autotest is a continous testing facility meant to be used during
development. As soon as you save a file, autotest will run the
corresponding dependent tests.

multiruby runs anything you want on multiple versions of ruby. Great
for compatibility checking! Use multiruby_setup to manage your
installed versions.

Changes:

### 4.1.0 / 2009-06-03

* 1 major enhancement:

   * Removed all plugins I don't want to maintain anymore. (gem inst
autotest-rails)

* 4 minor enhancements:

   * Added #blur to focus.rb to nuke all other test classes
   * Clear RUBYOPT before installs (balatero)
   * Removed test/unit include in zentest so we can focus on miniunit
   * sort versions for builds. (Jens Wille)

* 6 bug fixes:

   * Fixed a stupid bug when running on some versions of bash >= 3.2.x
and using '&>' in a system call. (Jens Wille)
   * Fixed inconsistent test commands in autotest. (jbarnette)
   * Fixed unit_diff's usage generation when installed as gem. (borior)
   * Fixed zentest to deal with unnamed classes. (Bill Dortch)
   * Removed buggy/unused -l support in unit_diff. (borior)
   * make twice to make it more resilient to makefile parallel bugs

* <http://www.zenspider.com/ZSS/Products/ZenTest/>
* <http://rubyforge.org/projects/zentest/>
* <ryand-ruby@zenspider.com>
53581739a445ad78250a676dabddf55f?d=identicon&s=25 James Coglan (Guest)
on 2009-06-03 12:41
(Received via mailing list)
2009/6/3 Ryan Davis <ryand-ruby@zenspider.com>

>
> ZenTest version 4.1.0 has been released!



I'm getting the following when installing stuff:

10:43 ~ $ sudo gem install ZenTest
Successfully installed ZenTest-4.1.0
1 gem installed
Installing ri documentation for ZenTest-4.1.0...
Installing RDoc documentation for ZenTest-4.1.0...
10:43 ~ $ multiruby_setup mri:tar:1.8.7
creating /home/jcoglan/.multiruby
creating build
creating install
creating versions
creating tmp
  Determining latest version for 1.8.7
    Fetching ruby-1.8.7-p160.tar.gz via HTTP... this might take a while.
creating /home/jcoglan/.multiruby/install/1.8.7-p160
/usr/lib/ruby/gems/1.8/gems/ZenTest-4.1.0/lib/multiruby.rb:97:in `run':
wrong number of arguments (1 for 2) (ArgumentError)
    from
/usr/lib/ruby/gems/1.8/gems/ZenTest-4.1.0/lib/multiruby.rb:97:in
`build_and_install'
    from
/usr/lib/ruby/gems/1.8/gems/ZenTest-4.1.0/lib/multiruby.rb:81:in
`each'
    from
/usr/lib/ruby/gems/1.8/gems/ZenTest-4.1.0/lib/multiruby.rb:81:in
`build_and_install'
    from
/usr/lib/ruby/gems/1.8/gems/ZenTest-4.1.0/lib/multiruby.rb:80:in
`chdir'
    from
/usr/lib/ruby/gems/1.8/gems/ZenTest-4.1.0/lib/multiruby.rb:80:in
`build_and_install'
    from
/usr/lib/ruby/gems/1.8/gems/ZenTest-4.1.0/lib/multiruby.rb:73:in
`chdir'
    from
/usr/lib/ruby/gems/1.8/gems/ZenTest-4.1.0/lib/multiruby.rb:73:in
`build_and_install'
    from
/usr/lib/ruby/gems/1.8/gems/ZenTest-4.1.0/bin/multiruby_setup:20
    from
/usr/lib/ruby/gems/1.8/gems/ZenTest-4.1.0/bin/multiruby_setup:10:in
`each'
    from
/usr/lib/ruby/gems/1.8/gems/ZenTest-4.1.0/bin/multiruby_setup:10
    from /usr/bin/multiruby_setup:19:in `load'
    from /usr/bin/multiruby_setup:19


I fixed it by changing Multiruby.run to this:

  def self.run base_cmd, log = nil
    cmd = "#{base_cmd} #{log ? "> #{log}" : ""} 2>&1"
    puts "Running command: #{cmd}"
    raise "ERROR: Command failed with exit code #{$?}" unless system cmd
  end

I've filed a bug on RubyForge, and will send a patch via GitHub.

James
53581739a445ad78250a676dabddf55f?d=identicon&s=25 James Coglan (Guest)
on 2009-06-03 16:47
(Received via mailing list)
2009/6/3 Ryan Davis <ryand-ruby@zenspider.com>

>
> ZenTest version 4.1.0 has been released!



Having fixed Multiruby.run, I now cannot install gems -- all versions
complain about a lack of 'zlib' -- how do I fix this?


15:40 ~/projects $ multiruby_setup update:rubygems
  Determining latest version for rubygems
    Fetching rubygems-1.3.4.tgz via HTTP.
15:41 ~/projects $ multiruby -S gem install --no-ri --no-rdoc test-unit
rspec
building and installing 1.8.6-p368
Running command: (nice make -j4; nice make) > log.build 2>&1
Running command: make install > log.install 2>&1
Running command: tar zxf
/home/jcoglan/.multiruby/versions/rubygems-1.3.4.tgz  2>&1
Running command: ../ruby ./setup.rb --no-rdoc --no-ri > ../log.rubygems
2>&1
building and installing 1.8.7-p160
Running command: (nice make -j4; nice make) > log.build 2>&1
Running command: make install > log.install 2>&1
Running command: tar zxf
/home/jcoglan/.multiruby/versions/rubygems-1.3.4.tgz  2>&1
Running command: ../ruby ./setup.rb --no-rdoc --no-ri > ../log.rubygems
2>&1
building and installing 1.9.0-5
Running command: (nice make -j4; nice make) > log.build 2>&1
Running command: make install > log.install 2>&1
building and installing 1.9.1-p129
Running command: (nice make -j4; nice make) > log.build 2>&1
Running command: make install > log.install 2>&1

VERSION = 1.8.6-p368
CMD     = ~/.multiruby/install/1.8.6-p368/bin/ruby -S gem install
--no-ri
--no-rdoc test-unit rspec

/home/jcoglan/.multiruby/install/1.8.6-p368/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- zlib (LoadError)
    from
/home/jcoglan/.multiruby/install/1.8.6-p368/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from
/home/jcoglan/.multiruby/install/1.8.6-p368/lib/ruby/site_ruby/1.8/rubygems/package.rb:10
    from
/home/jcoglan/.multiruby/install/1.8.6-p368/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from
/home/jcoglan/.multiruby/install/1.8.6-p368/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from
/home/jcoglan/.multiruby/install/1.8.6-p368/lib/ruby/site_ruby/1.8/rubygems/format.rb:9
    from
/home/jcoglan/.multiruby/install/1.8.6-p368/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from
/home/jcoglan/.multiruby/install/1.8.6-p368/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from
/home/jcoglan/.multiruby/install/1.8.6-p368/lib/ruby/site_ruby/1.8/rubygems/installer.rb:11
     ... 11 levels...
    from
/home/jcoglan/.multiruby/install/1.8.6-p368/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:131:in
`process_args'
    from
/home/jcoglan/.multiruby/install/1.8.6-p368/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in
`run'
    from
/home/jcoglan/.multiruby/install/1.8.6-p368/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in
`run'
    from /usr/bin/gem:21

RESULT = 256

VERSION = 1.8.7-p160
CMD     = ~/.multiruby/install/1.8.7-p160/bin/ruby -S gem install
--no-ri
--no-rdoc test-unit rspec

/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- zlib (LoadError)
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/package.rb:10
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/format.rb:9
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/installer.rb:11
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:3
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:4
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:167:in
`load_and_instantiate'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:88:in
`[]'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:144:in
`find_command'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:131:in
`process_args'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in
`run'
    from
/home/jcoglan/.multiruby/install/1.8.7-p160/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in
`run'
    from /usr/bin/gem:21

RESULT = 256

VERSION = 1.9.0-5
CMD     = ~/.multiruby/install/1.9.0-5/bin/ruby -S gem install --no-ri
--no-rdoc test-unit rspec

/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/package.rb:10:in
`require': no such file to load -- zlib (LoadError)
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/package.rb:10:in
`<top (required)>'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/format.rb:9:in
`require'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/format.rb:9:in
`<top (required)>'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/installer.rb:11:in
`require'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/installer.rb:11:in
`<top (required)>'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/dependency_installer.rb:3:in
`require'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/dependency_installer.rb:3:in
`<top (required)>'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/commands/install_command.rb:4:in
`require'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/commands/install_command.rb:4:in
`<top (required)>'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/command_manager.rb:140:in
`require'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/command_manager.rb:140:in
`rescue in load_and_instantiate'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/command_manager.rb:132:in
`load_and_instantiate'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/command_manager.rb:65:in
`[]'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/command_manager.rb:118:in
`find_command'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/command_manager.rb:104:in
`process_args'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/command_manager.rb:75:in
`run'
    from
/home/jcoglan/.multiruby/install/1.9.0-5/lib/ruby/1.9.0/rubygems/gem_runner.rb:39:in
`run'
    from /usr/bin/gem:21:in `<main>'

RESULT = 256

VERSION = 1.9.1-p129
CMD     = ~/.multiruby/install/1.9.1-p129/bin/ruby -S gem install
--no-ri
--no-rdoc test-unit rspec

/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/package.rb:10:in
`require': no such file to load -- zlib (LoadError)
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/package.rb:10:in
`<top (required)>'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/format.rb:9:in
`require'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/format.rb:9:in
`<top (required)>'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/installer.rb:11:in
`require'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/installer.rb:11:in
`<top (required)>'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/dependency_installer.rb:3:in
`require'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/dependency_installer.rb:3:in
`<top (required)>'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/commands/install_command.rb:4:in
`require'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/commands/install_command.rb:4:in
`<top (required)>'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/command_manager.rb:140:in
`require'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/command_manager.rb:140:in
`rescue in load_and_instantiate'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/command_manager.rb:132:in
`load_and_instantiate'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/command_manager.rb:65:in
`[]'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/command_manager.rb:118:in
`find_command'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/command_manager.rb:104:in
`process_args'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/command_manager.rb:75:in
`run'
    from
/home/jcoglan/.multiruby/install/1.9.1-p129/lib/ruby/1.9.1/rubygems/gem_runner.rb:39:in
`run'
    from /usr/bin/gem:21:in `<main>'

RESULT = 256

TOTAL RESULT = 4 failures out of 4

Passed:
Failed: 1.9.1-p129, 1.8.7-p160, 1.8.6-p368, 1.9.0-5
5a837592409354297424994e8d62f722?d=identicon&s=25 Ryan Davis (Guest)
on 2009-06-03 20:46
(Received via mailing list)
On Jun 3, 2009, at 03:40 , James Coglan wrote:

> Successfully installed ZenTest-4.1.0
>    Fetching ruby-1.8.7-p160.tar.gz via HTTP... this might take a
> while.
> creating /home/jcoglan/.multiruby/install/1.8.7-p160
> /usr/lib/ruby/gems/1.8/gems/ZenTest-4.1.0/lib/multiruby.rb:97:in
> `run':
> wrong number of arguments (1 for 2) (ArgumentError)

fixed and released. thanks for filing a bug.
5a837592409354297424994e8d62f722?d=identicon&s=25 Ryan Davis (Guest)
on 2009-06-03 20:48
(Received via mailing list)
On Jun 3, 2009, at 07:45 , James Coglan wrote:

> 2009/6/3 Ryan Davis <ryand-ruby@zenspider.com>
>
>>
>> ZenTest version 4.1.0 has been released!
>
> Having fixed Multiruby.run, I now cannot install gems -- all versions
> complain about a lack of 'zlib' -- how do I fix this?

um... get off of ubuntu/debian and start enjoying life again? :)

I don't have an answer. The long and short of it is you're missing
some packages you need. It is a common problem on ubuntu/debian and
google should point out the solution pretty easily.
This topic is locked and can not be replied to.