rcov
Confused about simplecov and rspec in rails
This is code in 开发者_运维知识库a model: def find_tech Category.find_by_name(\"tech\") end and this is the rspec test:[详细]
2023-04-05 19:04 分类:问答Skipping files in spec/ when running rcov with RSpec 2.5
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[详细]
2023-02-17 16:00 分类:问答Code coverage tools for haml?
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.[详细]
2023-02-14 20:12 分类:问答Rspec2 issue with Rcov
In my Rakefile, I have a task defined like this: namespace :test do desc \"Run all specs.\" RSpec::Core::RakeTask.new(:spec) do |t|[详细]
2023-02-01 18:30 分类:问答Why is RCov excluding views and including comments?
I am using Rails 3, RSpec 2 and the rcov gem. I am running rcov on my specs with the following rake task:[详细]
2023-02-01 15:26 分类:问答How do I see the statistics for rcov from the command line?
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.[详细]
2023-01-29 07:38 分类:问答Can you use RSpec, Shoulda, RCov?
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[详细]
2023-01-21 21:10 分类:问答Rcov coverage changes drastically with -xrefs
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)[详细]
2023-01-11 01:44 分类:问答rcov + Rails3 rc now broken from linecache dependency
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[详细]
2023-01-10 08:55 分类:问答Metric Fu: RCov fails to load spec_helper
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[详细]
2023-01-07 02:22 分类:问答