Running tests on gem


#1

Is there a way to run he tests with cjust the gem installed?

I wanted to run the tests on the gem and tried:

$ jruby -S gem list RedCloth

*** LOCAL GEMS ***

RedCloth (4.1.1)

$ jruby --version
jruby 1.1.5 (ruby 1.8.6 patchlevel 114) (2008-11-14 rev 6586)
[i386-java]

[jruby.git (master)]$ jruby -S gem check -test RedCloth
ERROR: While executing gem … (OptionParser::InvalidOption)
invalid option: -est
[jruby.git (master)]$ jruby -S gem check --test RedCloth
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38:in
require': no such file to load -- helper (LoadError) from /Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/validator.rb:181:inunit_test’
from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/validator.rb:181:in
each' from /Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/validator.rb:181:inunit_test’
from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/commands/check_command.rb:36:in
execute' from /Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/command.rb:136:ininvoke’
from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:105:in
process_args' from /Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:75:inrun’
from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in
`run’
from /Users/stephen/dev/ruby/src/jruby.git/bin/gem:24


#2

Not currently, but it seems a reasonable request. File a ticket and
I’ll make gem check --test RedCloth work.
Jason