[rspec-users] [Cucumber] - default rake task

aslak hellesoy aslak.hellesoy at gmail.com
Tue Jan 13 13:28:44 EST 2009


On Tue, Jan 13, 2009 at 7:02 PM, aidy lewis <aidy.lewis at googlemail.com>wrote:

> Hi,
>
> I have a Rake problem.
>
> I would like the default task to run after :features.
>
> Curently it doesn't when :features fails. Could you please help?
>
>
> <RAKE>
> require 'cucumber/rake/task'
>
> def send_dcs_email_report(path_to_story_results)
>  ###
> end
>
> Cucumber::Rake::Task.new("features", "All features in IE") do |t|
>  t.cucumber_opts = "--format html --out story-results.html"
> end
>
> task :default => :features do
>  path_to_story_results =
> File.expand_path(File.dirname(".")).gsub("/", "\\") +
> "\\story-results.html"
>  send_dcs_email_report(path_to_story_results)
> end
> </RAKE>
>

Rake immediately stops when a task fails.

I'm assuming you're using some sort of CI since you're sending emails. I'd
make the CI send email instead of Rake.

Aslak


> Thanks
>
> Aidy
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090113/a98a986c/attachment.html>


More information about the rspec-users mailing list