Displaying 20 results from an estimated 48 matches for "spectask".
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, it runs the specs using RCov and generates
the reports, but it''s including all my...
2010 Oct 25
2
Fail to load spec/rake/spectask
Hi!
I''m a newbie at Ruby. I''m trying to run rspec tests using rake. In my
rake file I include spec/rake/spectask.
It fails to load giving me the following message:
rake aborted!
no such file to load -- spec/rake/spectask
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in
`raw_load_rakefile''
I''m using version 1.8.7 of Ruby.
I have installed rake and rspec using:
gem install ra...
2010 Jun 02
5
Programmatically counting RSpec tests?
If I have an object `obj` that is a SpecTask, and subsequently invoke
it, is there a way to programmatically determine the number of tests
that were successful, failed, and pending as a result of running that
SpecTask?
--
John Feminella
Principal Consultant, Distilled Brilliance
2011 Jan 07
1
no such file to load -- spec/rake/spectask
I am sorry but it seems like this should be a simple answer.
when i run a any rake command i get the following error:
no such file to load -- spec/rake/spectask
i amusing bundler and have the latest rspec installed.
any idea? make dev tough when you can not do any rake tasks...
2008 Jul 09
2
Can I get RSpec NOT to abort rake on failing specs?
...tasks as pre-reqs.
We do a lot of branching and merging, so we really want to run all of the
tests and specs to see all failures.
We just realized that Rspec is aborting rake when a spec fails or errors in
an individual rake task. I''ve been trying to fix this to no avail. I
notice that SpecTask has an attribute accessor fail_on_error which looks
like it SHOULD prevent terminating rake if it''s set to false. So I tried
that and it doesn''t seem to work. Here''s our projects lib/tasks/spec.rake,
any ideas?
def spec_tasks
%w{spec:controllers spec:models spec:hel...
2007 May 03
7
before method
Would it be desirable to have before and after take a spec name as
well as :each and :all?
Scott
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
2009 Feb 03
3
Rcov - Specifying rake tasks
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 :rcov => "rcov:cucumber"
end
Cucumber::Rake::Task.new(:cucumber) do |t|
...
Spec::Rake::SpecTask.new(:rspec) do |t...
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 Nov 21
6
failing rake task
...options "/Users/lance/Sites/feedvuz/spec/spec.opts" failed
(See full trace by running task with --trace)
The trace produced the following results:
" --options "/Users/lance/Sites/feedvuz/spec/spec.opts" failed
/Users/lance/Sites/feedvuz/vendor/plugins/rspec/lib/spec/rake/spectask.rb:173:in
`define''
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:823:in
`verbose''
/Users/lance/Sites/feedvuz/vendor/plugins/rspec/lib/spec/rake/spectask.rb:142:in
`define''
/System/Library/Frameworks/Ruby.framework...
2007 May 10
1
RSpec 0.9.4
...source though). But here is the gist of it:
== Install ==
gem install rspec -r 0.9.4
gem install spec_ui -r 0.2.0
=== Windows users - if you want screenshots ===
gem install win32screenshot
Install RMagick (special install procedure)
== Configure ==
=== Rakefile ===
require ''spec/rake/spectask''
desc "Run UI Specs"
Spec::Rake::SpecTask.new(''spec:ui'') do |t|
t.spec_files = FileList[''spec/**/*.rb'']
t.spec_opts = [
''--require'', ''spec/spec_helper'',
''--format'', ''Sp...
2009 Apr 22
1
Tests for my gem cannot find classes in gems lib directory ..
...he lib folder correctly and I can instantiate the class
in my rake.spec. Thanks for your time.
gem_name
+ lib
+gem_name
-foo.rb
+spec
- foo_spec.rb
+tasks
- spec.rake
my spec rake
require ''rubygems''
require ''spec''
require ''spec/rake/spectask''
Dir[File.expand_path("lib/**/*.rb")].each do |f|
require f
end
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList[''spec/*_spec.rb'']
end
and my spec
describe Foo do
end
The error I get
./spec/Foo_spec.rb:1: uninitialized constant Foo (NameEr...
2006 Dec 27
2
DB-less rspec_on_rails
...#39;'
/usr/lib/ruby/1.8/rake.rb:729:in `call''
/usr/lib/ruby/1.8/rake.rb:729:in `sh''
/usr/lib/ruby/1.8/rake.rb:812:in `sh''
/usr/lib/ruby/1.8/rake.rb:747:in `ruby''
/usr/lib/ruby/1.8/rake.rb:812:in `ruby''
/var/lib/gems/1.8/gems/rspec-0.7.5/lib/spec/rake/spectask.rb:131:in `define''
/usr/lib/ruby/1.8/rake.rb:831:in `verbose''
/var/lib/gems/1.8/gems/rspec-0.7.5/lib/spec/rake/spectask.rb:110:in `define''
/usr/lib/ruby/1.8/rake.rb:387:in `call''
/usr/lib/ruby/1.8/rake.rb:387:in `execute''
/usr/lib/ruby/1.8/rake.rb:387:in...
2007 Jun 15
1
Problems with RCov and Rails
Hey list,
I''m trying to use the rcov integration that rspec provides in my Rails
application. As per the documentation on the website, I''ve created
the following rake task:
lib/tasks/specs_with_rcov.rake:
require ''spec/rake/spectask''
desc "Run all specs with rcov"
Spec::Rake::SpecTask.new(''specs_with_rcov'') do |t|
t.rcov = true
end
However...
$ rake specs_with_rcov
(in /Users/ian/Projects/systino/trunk)
rake aborted!
superclass mismatch for class Annotation
/Users/ian/Projects/systino/...
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
2008 Jan 08
2
Problems with rspec 1.1 required inside rake tasks
This is interesting.
The default rspec rake tasks generated by Hoe give you an rspec.rake
file that looks like:
> begin
> require ''spec''
> rescue LoadError
> require ''rubygems''
> require ''spec''
> end
>
So far so good.
When you invoke rake to do something, say check_manifest
> rake check_manifest
>
You
2009 Mar 08
2
rspec 1.1.99.12, Rails 2.3.1, undefined method `rspec_options=''
...ed method `rspec_options='' for #<Hoe:0xb782caf0>
/rspec/Rakefile:24
rspec / Rakefile look like
# -*- ruby -*-
$:.unshift(File.join(File.dirname(__FILE__), ''lib''))
require ''hoe''
require ''spec/version''
require ''spec/rake/spectask''
require ''cucumber/rake/task''
class Hoe
def extra_deps
@extra_deps.reject! { |x| Array(x).first == ''hoe'' }
@extra_deps
end
end
Hoe.new(''rspec'', Spec::VERSION::STRING) do |p|
p.summary = Spec::VERSION::SUMMARY
p.url = &...
2008 Sep 14
2
rake spec:rcov => [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i386-mswin32]
...blogs/new.html.erb_spec.rb"
"spec/views/blogs/show.html.erb_spec.rb" --options "
C:/Documents and Settings/Scott/My Documents/NetBeansProjects/blog/
spec/spec.opts" failed
C:/Documents and Settings/Scott/My Documents/NetBeansProjects/blog/
vendor/plugins/rspec/lib/spec/rake/spectask.rb:177:in `define''
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1003:in
`verbose''
C:/Documents and Settings/Scott/My Documents/NetBeansProjects/blog/
vendor/plugins/rspec/lib/spec/rake/spectask.rb:153:in `define''
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake...
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?
2007 Nov 25
15
Possible Problem with RSpec and
...ommand ruby -I"C:/var/RSpec/depot/vendor/plugins/rspec/lib"
"C:/var/RSpec/depot/vendor/plugins/rspec/bin/spec" "spec/models/
product_spec.rb" --options "C:/var/RSpec/depot/config/../spec/spec.opts"
failed
C:/var/RSpec/depot/vendor/plugins/rspec/lib/spec/rake/
spectask.rb:173:in `define''
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:823:in `verbose''
C:/var/RSpec/depot/vendor/plugins/rspec/lib/spec/rake/
spectask.rb:142:in `define''
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:392:in `call...