jruby-rcov 0.8.2.2-java → 0.8.2.3-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -47,6 +47,7 @@ desc "Run the unit tests with rcovrt."
47
47
  if RUBY_PLATFORM == 'java'
48
48
  Rake::TestTask.new(:test_rcovrt => ["lib/rcovrt.jar"]) do |t|
49
49
  t.libs << "lib"
50
+ t.ruby_opts << "--debug"
50
51
  t.test_files = FileList['test/*_test.rb']
51
52
  t.verbose = true
52
53
  end
data/bin/rcov CHANGED
@@ -9,6 +9,7 @@
9
9
  #
10
10
  # See LEGAL and LICENSE for additional licensing information.
11
11
  #
12
+
12
13
  require 'cgi'
13
14
  require 'rbconfig'
14
15
  require 'optparse'
@@ -16,7 +17,6 @@ require 'ostruct'
16
17
 
17
18
  SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__
18
19
  require 'rcov/version'
19
- require 'rcov/formatters'
20
20
  require 'rcov/report'
21
21
 
22
22
  #{{{ "main" code
@@ -27,7 +27,7 @@ options.profiling = false
27
27
  options.destdir = nil
28
28
  options.loadpaths = []
29
29
  options.textmode = false
30
- options.skip = Rcov::BaseFormatter::DEFAULT_OPTS[:ignore]
30
+ options.skip = Rcov::Formatter::DEFAULT_OPTS[:ignore]
31
31
  options.include = []
32
32
  options.html = true
33
33
  options.comments_run_by_default = false
@@ -325,10 +325,11 @@ def rcov_load_aggregate_data(file)
325
325
  end
326
326
 
327
327
  def rcov_save_aggregate_data(file)
328
- require 'zlib'
329
- Zlib::GzipWriter.open(file) do |f|
330
- Marshal.dump({:callsites => $rcov_callsite_analyzer, :coverage => $rcov_code_coverage_analyzer}, f)
331
- end
328
+ require 'zlib'
329
+ Zlib::GzipWriter.open(file) do |f|
330
+ Marshal.dump({:callsites => $rcov_callsite_analyzer,
331
+ :coverage => $rcov_code_coverage_analyzer}, f)
332
+ end
332
333
  end
333
334
 
334
335
  if options.callsites
data/lib/rcov/lowlevel.rb CHANGED
@@ -140,6 +140,8 @@ One Click Installer and mswin32 builds) at http://eigenclass.org/hiki.rb?rcov .
140
140
  end
141
141
  end
142
142
  end
143
- end
143
+ end # RCOV__
144
144
 
145
- end
145
+ end # Rcov
146
+
147
+ # vi: set sw=2:
data/lib/rcov/rcovtask.rb CHANGED
@@ -88,6 +88,7 @@ module Rcov
88
88
  @warning = false
89
89
  @rcov_opts = ["--text-report"]
90
90
  @ruby_opts = []
91
+ @ruby_opts << "--debug" if RUBY_PLATFORM == 'java'
91
92
  @output_dir = "coverage"
92
93
  yield self if block_given?
93
94
  @pattern = 'test/test*.rb' if @pattern.nil? && @test_files.nil?