I’m trying to use RCov in my Rakefile for code coverage with Rspec in
the ruby code our App, but because of our special needs in the app (mix
code of Java, Ruby and Scala) we’re executing it with jruby-complete
(1.5.1 right now).
The thing is that because RCov need an executable that is installed when
the gem is, the jruby-complete can’t find it because it’s looking for
inside the bin directory in the jar file.
Is there any way to execute RCov with jruby-complete??
I think it would be nice to include rcov inside the jruby-complete,
because is very related to the spec gem and really useful for testing.
In that case it wouldn’t be any problem using RCov with JRuby-Complete.
My fail is the following:
$ java -jar jruby-complete-1.5.1.jar -S rake spec
rm -r coverage
jruby: No such file, directory, or command – rcov
If I see my gem environment:
$ java -jar jruby-complete-1.5.1.jar -S gem env
- RUBYGEMS VERSION: 1.3.6
- RUBY VERSION: 1.8.7 (2010-06-06 patchlevel 249) [java]
- INSTALLATION DIRECTORY:
- RUBY EXECUTABLE: java -jar
- EXECUTABLE DIRECTORY:
- RUBYGEMS PLATFORMS:
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- “install” => “–env-shebang”
- “update” => “–env-shebang”
- REMOTE SOURCES:
So I can’t install the gem with the jruby-complete, due to not be
possible to include binaries in the EXECUTABLE DIRECTORY and gems to the
INSTALLATION DIRECTORY (inside the jruby-complete.jar)
Does anyone know how to run the RCov with the JRuby-Complete without
having to create your own jruby-complete.jar???