I'm using rcov on a set of tests autogenerated from my rails routes to collect information on dead code (code which is never called in the application). This set up already generates enlightening results for controllers, models, helpers, and lib code. Unfortunately rcov does not track code coverage in erb templates, which makes sense a...
Is it possible to measure coverage using selenium-driven features?
...
Hi,
I am currently developing a Ruby gem and want to create metrics.
I am using 'metric_fu', but RCov seems to leave my specs.
Here is my metric_fu configuration:
MetricFu::Configuration.run do |config|
config.metrics = [:churn, :saikuro, :flog, :flay, :reek, :roodi, :rcov]
config.graphs = [:flog, :flay, :reek, :ro...
I'm trying to get metric-fu running on a rails project I'm working with. Every time it runs the rcov portion of the metrics I get:
** Invoke metrics:all (first_time)
** Execute metrics:all
No file to analyze was found. All the files loaded by rcov matched one of the
following expressions, and were thus ignored:
[/\A\/System\/Library\/F...
Here's my controller:
class MyController < ApplicationController
include MyHelper
def index
get_list_from_params do |list|
@list = list
respond_to do |format|
format.html
format.xml { render :xml => @list }
format.json { render :json => @list }
end
end
end
end
...the helper tha...
I resumed testing my rails app after suspending it. Running tests on my rails app returns a SystemStackError now. Even a simple test like
def test_per_page
assert_instance_of Fixnum, Activity.per_page
end
is giving me
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/m
odule/introspection.rb:74:in `loc...
Context
rcov 0.9.8 2010-02-28
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.3.0]
rvm 0.1.38 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]
System Ruby (rvm use system): ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10]
Files
The test setup is a 'lib' folder containing a single file which de...
I use rcov 0.9.8 on ruby 1.9.1 and rvm for ROR application.
Rcov has problem on ruby 1.9. I found solution for encoding problems from here.
--- lib/rcov/code_coverage_analyzer.rb~ 2010-03-21 16:15:47.000000000 +0100
+++ lib/rcov/code_coverage_analyzer.rb 2010-03-21 16:11:49.000000000 +0100
@@ -250,6 +250,10 @@
end
def update...
I'm working with a bit of a bleeding edge rails app. Rails 3, RSpec 2, Rspec-Rails2.
It seems as if RSpec2 doesn't include the spec:rcov rake task that RSpec 1 has. (at least it isn't there yet)
Has anyone had any luck running rcov with rspec 2, or writing their own rake task to make this work?
...
When I attempt to save a job that runs code coverage tests and is configured to publish an rcov report I get the error message listed below and the changes I made aren't saved. This problem cropped up with Hudson version 1.362 and exists in 1.363. If I uncheck the "Publish coverage report" checkbox the job can be saved.
Status Code: 500...
I am trying to run metric_fu on a Rails 3 application. All is good, with the exception of rcov. I have RSpec configured and my tests follow the spec/*/.rb format and run fine in RSpec. Trying to check coverage with rcov, however, I get the following errors:
** Running the specs/tests in the [test] environment
No file to analyze was ...
I hit a wall today with rcov + Rails3.
I am developing my Rails3 app using Ruby 1.9.2-preview3. rcov and relevance-rcov do not work with Ruby 1.9.2 yet. I can't find any fork of rcov that does yet either. It wasn't that big of a deal since I could easily switch over to Ruby 1.8.7 using rvm --default 1.8.7; rake test:coverage.
So the...
My current Ruby on Rails project does testing via rcov (specifically, relevance rcov, and we have a pretty high standard (we fail the build if we have < 95% code coverage).
We use the following command to test this:
rcov_cmd = "rcov --rails --text-summary \
--include #{included_dirs} \
--exclude #{excluded_dirs}...
The verify_rcov task is no longer available in new rspec-2.0. just curious on how you will tackle this issue. I certainly can do what rspec 1.x did - check the html file to get the number. Is there better way for this?
...
I am attempting to get RCov to work with my RSpec and Shoulda test for a rails 3 app. It seems to work fine with my RSpec after using the Rake task below but all of the shoulda tests fail and I cant seem to find any documentation on getting these to work. They all run fine under autotest(rspec and shoulda).
namespace :spec do
desc "...