Title: [939] trunk/rcov4jr: Updated instructions.
- Revision
- 939
- Author
- kofno
- Date
- 2008-03-09 18:16:30 -0400 (Sun, 09 Mar 2008)
Log Message
Updated instructions. Added some help for getting started doing rcov4jr development.
Modified Paths
Diff
Modified: trunk/rcov4jr/README.txt (938 => 939)
--- trunk/rcov4jr/README.txt 2008-03-09 15:15:14 UTC (rev 938)
+++ trunk/rcov4jr/README.txt 2008-03-09 22:16:30 UTC (rev 939)
@@ -1,7 +1,21 @@
-This gem provides JRuby support for Rcov.
+Rcov4jr
+ http://rubyforge.org/projects/jruby-extras/
-Right now, this project can only be built from JRuby.
+== DESCRIPTION:
-There seems to be problem getting this to work when it's installed as a gem
+This gem provides JRuby support for Rcov, a Ruby code coverage engine. That
+means porting the MRI native extensions to Java. It also means making it as easy
+as possible for rcov4jr to be used anywhere rcov is used. Making sure rspec
+support works and that it integrates cleanly into rails applications is key.
-The tests are part of rcov's package. Use rcov-0.8.0.2.
+
+== DEVELOPERS
+
+ * Right now, java compile routines assume that you are running in JRuby.
+ * rake specs can be run from MRI or JRuby. This makes it easier to write specs.
+ * The tests are from rcov's package. Use rcov-0.8.0.2.
+ * I found the easiest way to get rcov into JRuby was to run the non-gem install
+ script with the --without-ext switch. You can download the tarball here:
+ http://rubyforge.org/frs/download.php/28270/rcov-0.8.1.2.tar.gz
+
+
Modified: trunk/rcov4jr/Rakefile.rb (938 => 939)
--- trunk/rcov4jr/Rakefile.rb 2008-03-09 15:15:14 UTC (rev 938)
+++ trunk/rcov4jr/Rakefile.rb 2008-03-09 22:16:30 UTC (rev 939)
@@ -84,11 +84,18 @@
end
desc "Run specs for rcov4jr"
-Spec::Rake::SpecTask.new( "specs" ) do | t |
+Spec::Rake::SpecTask.new( :specs ) do | t |
t.libs << "lib"
t.spec_files = FileList[ "specs/**/*.rb" ]
end
+desc "Run specs in the wordier specdoc format"
+Spec::Rake::SpecTask.new( :specdocs ) do | t |
+ t.libs << "lib"
+ t.spec_files = FileList[ "specs/**/*.rb" ]
+ t.spec_opts = [ "--format", "s"]
+end
+
desc "Create the Java extension."
task :compile => [ 'lib/rcovrt.jar' ]
task :gem => [ :compile ]
Modified: trunk/rcov4jr/specs/code_coverage_analyzer_spec.rb (938 => 939)
--- trunk/rcov4jr/specs/code_coverage_analyzer_spec.rb 2008-03-09 15:15:14 UTC (rev 938)
+++ trunk/rcov4jr/specs/code_coverage_analyzer_spec.rb 2008-03-09 22:16:30 UTC (rev 939)
@@ -2,7 +2,7 @@
require 'rubygems'
require 'rcov'
-describe Rcov::CodeCoverageAnalyzer do
+describe Rcov::CodeCoverageAnalyzer, "hooks" do
def hook_level
Rcov::CodeCoverageAnalyzer.send( :hook_level )
end
@@ -17,12 +17,12 @@
end
end
- it "should increase hook_level when a new hook is installed" do
+ it "should increase hook_level when a new one is installed" do
@code_coverage_analyzer.install_hook
Rcov::CodeCoverageAnalyzer.send( :hook_level ).should == 1
end
- it "should not throw an exception if remove_hook is called before install_hook" do
+ it "should not throw an exception if one is removed without one being installed" do
@code_coverage_analyzer.remove_hook
Rcov::CodeCoverageAnalyzer.send( :hook_level ).should == -1
@code_coverage_analyzer.reset
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel