testbot jruby compatability
How do I run a test on jruby?
I've tried the following:
- Install the testbot [jason@arch ~]$ rvm use jruby Using /home/jason/.rvm/gems/jruby-1.7.11 [jason@arch ~]$ export JRUBY_OPTS="--1.9 -Xcext.enabled=true" [jason@arch ~]$ gem install testbot Building native extensions. This could take a while... ERROR: Error installing testbot: ERROR: Failed to build gem native extension.
/home/jason/.rvm/rubies/jruby-1.7.11/bin/jruby extconf.rb
/home/jason/.rvm/rubies/jruby-1.7.11/lib/ruby/shared/mkmf.rb:14: Use RbConfig instead of obsolete and deprecated Config. mkmf.rb can't find header files for ruby at /home/jason/.rvm/rubies/jruby-1.7.11/lib/native/include/ruby/ruby.h
extconf failed, uncaught signal 1
Gem files will remain installed in /home/jason/.rvm/gems/jruby-1.7.11/gems/posix-spawn-0.3.8 for inspection. Results logged to /home/jason/.rvm/gems/jruby-1.7.11/extensions/universal-java-1.7/1.9/posix-spawn-0.3.8/gem_make.out
- Set the 'USE_JRUBY' environmental variable in ~/.bashrc to true and run the testbot server and testbot runner on ruby 1.9.3. Also I have installed jruby on my system.
Running the example program in the README gave the following error. [jason@arch testbotdemo]$ testbot --test --connect localhost
arch:/tmp/testbot NameError: uninitialized constant Itest const_missing at org/jruby/RubyModule.java:2690 (root) at -Itest:1