Displaying 11 results from an estimated 11 matches for "rcov_opts".
2008 Dec 04
2
Cucumber and Rcov
..."--format pretty"
end
Cucumber::Rake::Task.new(:cruise) do |t|
t.cucumber_opts = "--format pretty
--out=#{ENV[''CC_BUILD_ARTIFACTS'']}/features.txt --format html
--out=#{ENV[''CC_BUILD_ARTIFACTS'']}/features.html"
t.rcov = true
t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/}
t.rcov_opts << %[-o "#{ENV[''CC_BUILD_ARTIFACTS'']}/features_rcov"]
end
Cucumber::Rake::Task.new(:rcov) do |t|
t.rcov = true
t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/}
t.rcov_opts &...
2007 Aug 10
3
Using rcov and ouput to screen
I''d like to output my rcov data to the screen in ascii instead of
html...is that possible using the rake spec:rcov command?
Also, is there somewhere that will allow me to search the mail
archives...I''m pretty sure someone else has asked similar questions.
Thanks for the help.
Mike B.
----------------------------------------------------------------
This message was sent
2007 Apr 09
7
RCov results seem to include the spec files
I saw the RCov page at http://rspec.rubyforge.org/tools/rcov.html and
decided to add it to my project. My rakefile looks like this:
require "rake"
require "spec/rake/spectask"
desc "Run all specs with RCov"
Spec::Rake::SpecTask.new("spec:rcov") do |t|
t.spec_files = FileList["spec/**/*_spec.rb"]
t.rcov = true
end
When I run rake spec:rcov,
2008 May 27
4
Failing rspec story not causing a CruiseControl.rb build to fail?
We''ve just added rspec stories to our CruiseControl.rb build. When there''s a failing scenario we see the failure in the log output, but it doesn''t cause the CruiseControl build to fail. We''ve also just upgraded to the latest rspec version, 1.1.4, which fixes rspec bug 228, but the CC.rb build is still passing.
Has anyone got failing rspec stories making
2007 Aug 10
0
(no subject)
...cs in spec directory with RCov (excluding plugin specs)"
Spec::Rake::SpecTask.new(:rcov) do |t|
t.spec_opts = [''--options'', "\"#{RAILS_ROOT}/spec/spec.opts\""]
t.spec_files = FileList[''spec/**/*_spec.rb'']
t.rcov = true
t.rcov_opts = [''--exclude'', ''spec'', ''--rails'']
end
Change this:
t.rcov_opts = [''--exclude'', ''spec'', ''--rails'']
to this:
t.rcov_opts = [''--exclude'', ''spec''...
2007 Jan 05
6
RSpec 0.7.5 with Rails and rcov
I seem to be missing something because I am at a loss on how to get
rcov, RSpec, and Rails working together. Would someone mind dropping
some hints?
2008 Mar 17
10
RSpec and RCov with JRuby
...imple script and it
worked (pretty slow, but it doesn?t matter).
But when I add the rcov options to my Rake task, RCov is not invoke
properly!
Rakefile:
Spec::Rake::SpecTask.new(''specs'') do |t|
t.spec_files = FileList[''spec/**/*.rb'']
t.rcov = true
t.rcov_opts = [''--exclude'', ''spec'']
t.verbose = true
end
Output:
...
Finished in 11.376 seconds
187 examples, 0 failures, 10 pending
Loaded suite /Users/tobias/bin/JRuby.framework/Current/bin/rcov
Started
Finished in 0.0080 seconds.
0 tests, 0 assertions, 0 failures,...
2008 Jul 09
2
Can I get RSpec NOT to abort rake on failing specs?
...t.spec_files = FileList["spec/#{task}/*_spec.rb"]
end
namespace(task) do
Spec::Rake::SpecTask.new(:rcov) do |t|
t.fail_on_error = false
t.spec_opts = [''--options'', "\"#{RAILS_ROOT}/spec/spec.opts\""]
t.rcov_opts = [''--include'', "\"app/#{task}/.*.rb$\""]
t.rcov = true
t.spec_files = FileList["spec/#{task}/*_spec.rb"]
end
end
end
end
rescue LoadError => e
puts "Spec tasks are not available - #{e}"
end
namespace...
2007 Sep 24
3
rcov including ruby lib
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,
Brandon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
2007 May 17
0
strange results when using rcov with rspec
...ns'', "\"#{RAILS_ROOT}/spec/spec.opts\""]
t.spec_files = FileList["vendor/plugins/#{ENV[''PLUGIN''] ||
"**"}/spec/models/*_spec.rb"]
t.rcov = true
t.rcov_dir = "spec/reports/model-coverage"
t.rcov_opts = [''--include-file'', "vendor\/plugins\/#{ENV
[''PLUGIN''] || "**"}\/app\/models\/*", ''--exclude'', "lib\/spec,bin\/
spec/,app,config"]
t.spec_opts = ["--format", "html"]
t.out = &q...
2007 Sep 04
7
Rake tasks getting in the way of edge (uses gem instead)
So I''d been running gem releases of rspec for the past several months,
and I installed edge rspec so that I can use Story Runner.
I''m running into a problem because I''ve got a couple rake tasks that
reference "spec/rake/raketask". If I try to run "rake spec" then it
pulls in the gem version instead of the plugin version. rake blows up
saying that