Re: [rspec-users] RCov

2011-03-11 Thread Justin Ko
On Fri, Mar 11, 2011 at 2:55 PM, James OBrien wrote: > I'm using Rake to run my specs e.g. > > task :test do > Rake::Task['spec'].execute > end > > how can I aspect this to include some sort of coverage report - RCov maybe? > > Of course, I could just escape to the command line with something l

[rspec-users] RCov

2011-03-11 Thread James OBrien
I'm using Rake to run my specs e.g. task :test do Rake::Task['spec'].execute end how can I aspect this to include some sort of coverage report - RCov maybe? Of course, I could just escape to the command line with something like system('rcov rspec ') but I prefer to solve this programaticaly si

Re: [rspec-users] rcov not working?

2010-04-28 Thread Jay McGaffigan
It looks like it can't find Rcov... do you have rcov installed? can you rcov --help from a command line? Thanks Jay On Wed, Apr 28, 2010 at 11:10 PM, Patrick J. Collins wrote: > I followed the instructions in the rspec book to setup rcov.  I appened to > the end of my RAILS_ROOT/Rakefile: > re

[rspec-users] rcov not working?

2010-04-28 Thread Patrick J. Collins
I followed the instructions in the rspec book to setup rcov. I appened to the end of my RAILS_ROOT/Rakefile: require 'rake' require 'spec/rake/spectask' namespace :spec do desc "Run specs with RCov" Spec::Rake::SpecTask.new('rcov') do |t| t.spec_files = FileList['spec/**/

Re: [rspec-users] RCov and Ruby 1.9.1

2009-05-10 Thread Rainer Kuhn
I solved it with relevance-rcov (formerly spicycode-rcov). There were remnants of an the failed "gem install rcov" attempt that caused errors. Some sudo rm -rf ... fixed that. Seemes to work fine on a test project. Tick -- Posted via http://www.ruby-forum.com/. _

[rspec-users] RCov and Ruby 1.9.1

2009-05-08 Thread Rainer Kuhn
Has anyone got RCov working with Ruby 1.9.1? The rcov gem won't even install, and the spicycode-rcov gem crashes. It would be nice to still benefit from rcovs features. Tick -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-us

Re: [rspec-users] Rcov - Specifying rake tasks

2009-02-03 Thread James Byrne
James Byrne wrote: > I think that I have this straightened now. > Cucumber::Rake::Task.new(:cucumber) etc. are factory methods that are > processed as encountered by rake. Having spent the day delving into Rake and the internals of factory methods for Rake included with RSpec and Cucumber, I d

Re: [rspec-users] Rcov - Specifying rake tasks

2009-02-03 Thread James Byrne
James Byrne wrote: > I am having a good deal of trouble grappling with how rake tasks are > processed. In my rcov.rake file I have this: I think that I have this straightened now. Cucumber::Rake::Task.new(:cucumber) etc. are factory methods that are processed as encountered by rake. -- Poste

Re: [rspec-users] Rcov - Specifying rake tasks

2009-02-03 Thread James Byrne
I am having a good deal of trouble grappling with how rake tasks are processed. In my rcov.rake file I have this: desc "Rcov code coverage reports" require 'rcov/rcovtask' require 'spec/rake/spectask' require 'cucumber/rake/task' #task :rcov => "rcov:complete" namespace :rcov do ... Cuc

[rspec-users] Rcov - Specifying rake tasks

2009-02-03 Thread James Byrne
I am trying to get a customized rcov rake task working. What I have so far looks like this: desc "Rcov code coverage reports" require 'rcov/rcovtask' require 'spec/rake/spectask' require 'cucumber/rake/task' task :rcov => "rcov:all" namespace :rcov do Rcov::RcovTask.new(:all) do task

Re: [rspec-users] Rcov rake task problems

2009-02-03 Thread James Byrne
desc "Rcov code coverage reports" task :rcov => "rcov:all" require 'rcov/rcovtask' namespace :rcov do Rcov::RcovTask.new(:all) do task :rcov => "rcov:testunit" end Rcov::RcovTask.new(:testunit) do |t| t.libs << "test" t.output_dir = 'coverage' t.test_files = FileList['test/

[rspec-users] Rcov rake task problems

2009-02-03 Thread James Byrne
OS = MS-WinXPproSP3 / CYGWIN_NT-5.1 1.5.25(0.156/4/2) 2008-06-12 19:34 ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin] rails (2.2.2) rake (0.8.3) rcov (0.8.1.1.0) I am trying to develop a rake task that will aggregate the results for testunit, spec and cucumber tests. However, I find that I c

Re: [rspec-users] RCov / RSpec segfaults on Ubuntu

2008-09-15 Thread Matt Wynne
Thankyou Chad and Aslak, those patches seem to have worked perfectly - time to apply the threshold crank! [rubs hands gleefully] On 13 Sep 2008, at 16:50, Chad Humphries wrote: I've got a version of rcov up at github (sudo gem install spicycode-rcov --source=http://gems.github.com/) incorpora

Re: [rspec-users] RCov / RSpec segfaults on Ubuntu

2008-09-13 Thread aslak hellesoy
On Sat, Sep 13, 2008 at 12:36 PM, Matt Wynne <[EMAIL PROTECTED]> wrote: > Hi all, > I appreciate that this is not an RSpec question, but I wondered if anyone > out there can offer some pointers. We're using the latest versions of RSpec > and RCov, and ruby --version says this (on the Ubuntu build s

Re: [rspec-users] RCov / RSpec segfaults on Ubuntu

2008-09-13 Thread Chad Humphries
I've got a version of rcov up at github (sudo gem install spicycode-rcov --source=http://gems.github.com/) incorporating many of the fixes for rcov segfaults. So far none of the old standard crashes have crept back up. Give it a try and let me know how it works for you. -- Chad On Sat, Sep 13,

[rspec-users] RCov / RSpec segfaults on Ubuntu

2008-09-13 Thread Matt Wynne
Hi all, I appreciate that this is not an RSpec question, but I wondered if anyone out there can offer some pointers. We're using the latest versions of RSpec and RCov, and ruby --version says this (on the Ubuntu build server): ruby 1.8.6 (2008-07-17 patchlevel 279) [x86_64-linux]

Re: [rspec-users] rcov causing a segmentation fault on rspec 1.1.4 and rails 2.1

2008-06-07 Thread Scott Taylor
On Jun 7, 2008, at 1:11 PM, Maurício Linhares wrote: Hello again :) I'm trying to run rcov on my specs here but i'm getting a lot of segmentation faults (and they usually happen at different places): /home/mauricio/NetBeansProjects/reeds/vendor/rails/activerecord/lib/ active_record/attribute

Re: [rspec-users] rcov causing a segmentation fault on rspec 1.1.4 and rails 2.1

2008-06-07 Thread David Chelimsky
On Jun 7, 2008, at 12:11 PM, Maurício Linhares wrote: Hello again :) I'm trying to run rcov on my specs here but i'm getting a lot of segmentation faults (and they usually happen at different places): /home/mauricio/NetBeansProjects/reeds/vendor/rails/activerecord/lib/ active_record/attribute

[rspec-users] rcov causing a segmentation fault on rspec 1.1.4 and rails 2.1

2008-06-07 Thread Maurício Linhares
Hello again :) I'm trying to run rcov on my specs here but i'm getting a lot of segmentation faults (and they usually happen at different places): /home/mauricio/NetBeansProjects/reeds/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:211: [BUG] Segmentation fault ruby 1.8.6 (2007-

Re: [rspec-users] rcov including ruby lib

2007-09-25 Thread Eivind Uggedal
On 9/25/07, Brandon Keepers <[EMAIL PROTECTED]> wrote: > When I run spec:rcov on my continuous integration server, the rcov > report is including many other libraries in the report, including > some from standard lib and gems. Has anyone else had this problem or > have any ideas for how to limit i

Re: [rspec-users] rcov including ruby lib

2007-09-24 Thread aslak hellesoy
On 9/24/07, Brandon Keepers <[EMAIL PROTECTED]> wrote: > When I run spec:rcov on my continuous integration server, the rcov > report is including many other libraries in the report, including > some from standard lib and gems. Has anyone else had this problem or > have any ideas for how to limit i

[rspec-users] rcov including ruby lib

2007-09-24 Thread Brandon Keepers
When I run spec:rcov on my continuous integration server, the rcov report is including many other libraries in the report, including some from standard lib and gems. Has anyone else had this problem or have any ideas for how to limit it just to coverage of code in app/ and lib/? Thanks,

[rspec-users] rcov including ruby lib

2007-09-24 Thread Brandon Keepers
When I run spec:rcov on my continuous integration server, the rcov report is including many other libraries in the report, including some from standard lib and gems. Has anyone else had this problem or have any ideas for how to limit it just to coverage of code in app/ and lib/? Thanks,