This is code in 开发者_运维知识库a model: def find_tech Category.find_by_name(\"tech\") end and this is the rspec test:
When running rake spec:rcov for a Rails 3 application, the files in the spec/ directory are getting included in the coverage statistics, but I don\'t want them to be. I want coverage statistics only f
It looks like it\'s quite possible to get a useful coverage report for Haml code, due to its one one-statement-per-line st开发者_如何转开发ructure.
In my Rakefile, I have a task defined like this: namespace :test do desc \"Run all specs.\" RSpec::Core::RakeTask.new(:spec) do |t|
I am using Rails 3, RSpec 2 and the rcov gem. I am running rcov on my specs with the following rake task:
I\'m running the built-in rake task to generate rcov reports: rake spec:rcov This generate files in my coverage directory, but I would like to see some aggregate stats output to the command console.
I am attempting to get RCov to work 开发者_StackOverflow社区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
My current Ruby on Rails project does testing via rcov (specifically, relevance rcov, and we have a pretty high standard (we fail the bui开发者_StackOverflow中文版ld if we have < 95% code coverage)
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 eit
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