Forum: RSpec Intermittent Cucumber exception

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2ce9c0106b5851b2294ba5eb9f5c04bd?d=identicon&s=25 Ashley Moran (Guest)
on 2008-12-03 16:55
(Received via mailing list)
Hi

Anyone recognise this exception, and know what causes it to happen
occasionally?

Thanks
Ashley

   Scenario: new story appears on
feed                                   # features/descriptions/
story_notification.feature:12
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/cucumber/
broadcaster.rb:15:in `write': Bad file descriptor (Errno::EBADF)
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/broadcaster.rb:15:in `puts'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/broadcaster.rb:15:in `__send__'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/broadcaster.rb:15:in `method_missing'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/broadcaster.rb:13:in `each'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/broadcaster.rb:13:in `method_missing'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/formatters/pretty_formatter.rb:107:in `step_failed'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/broadcaster.rb:15:in `__send__'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/broadcaster.rb:15:in `method_missing'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/broadcaster.rb:13:in `each'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/broadcaster.rb:13:in `method_missing'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/executor.rb:122:in `visit_step'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/executor.rb:106:in `visit_regular_step'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/tree/scenario.rb:15:in `accept'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/tree/scenario.rb:11:in `each'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/tree/scenario.rb:11:in `accept'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/executor.rb:87:in `execute_scenario'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/executor.rb:73:in `visit_scenario'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/executor.rb:67:in `visit_regular_scenario'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/tree/feature.rb:57:in `accept'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/tree/feature.rb:53:in `each'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/tree/feature.rb:53:in `accept'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/executor.rb:50:in `visit_feature'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/tree/features.rb:17:in `accept'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/tree/features.rb:17:in `each'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/tree/features.rb:17:in `accept'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/executor.rb:41:in `visit_features'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/cli.rb:167:in `execute!'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
cucumber/cli.rb:11:in `execute'
  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/cucumber:6
rake aborted!


--
http://www.patchspace.co.uk/
http://aviewfromafar.net/
2ce9c0106b5851b2294ba5eb9f5c04bd?d=identicon&s=25 Ashley Moran (Guest)
on 2008-12-03 17:13
(Received via mailing list)
On 3 Dec 2008, at 15:55, Ashley Moran wrote:
>  Scenario: new story appears on
> feed                                   # features/descriptions/
> story_notification.feature:12
> /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/
> cucumber/broadcaster.rb:15:in `write': Bad file descriptor
> (Errno::EBADF)
>   from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/cucumber:6
> rake aborted!


I captured it with --trace too, it's started happening more often...

  from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/cucumber:6
rake aborted!
Command failed with status (1): [/opt/local/bin/ruby -I "/opt/local/
lib/rub...]
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:971:in `sh'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:984:in `call'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:984:in `sh'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1072:in `sh'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1007:in `ruby'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1072:in `ruby'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/lib/cucumber/rake/
task.rb:34:in `define_task'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in
`execute'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
`execute'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in
`invoke_with_call_chain'
/opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in
`invoke_with_call_chain'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in
`invoke_task'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
`top_level'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
`top_level'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
`standard_exception_handling'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in
`top_level'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
`standard_exception_handling'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
/opt/local/bin/rake:19:in `load'
/opt/local/bin/rake:19



--
http://www.patchspace.co.uk/
http://aviewfromafar.net/
F68f69615423aa3851bd445409754dbf?d=identicon&s=25 Joseph Wilk (joesniff)
on 2008-12-03 17:19
(Received via mailing list)
Ashley Moran wrote:
>
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1007:in `ruby'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in
> `standard_exception_handling'
>
>
Can you share the arguments in the relevant Cucumber rake task?

Thanks,
--
Joseph Wilk
http://blog.josephwilk.net
2ce9c0106b5851b2294ba5eb9f5c04bd?d=identicon&s=25 Ashley Moran (Guest)
on 2008-12-03 20:03
(Received via mailing list)
On 3 Dec 2008, at 16:19, Joseph Wilk wrote:

> Can you share the arguments in the relevant Cucumber rake task?


That would be this:

Cucumber::Rake::Task.new do |t|
   t.cucumber_opts = "--format pretty"
   t.step_pattern  = "features/steps/**/*.rb"
end

--
http://www.patchspace.co.uk/
http://aviewfromafar.net/
This topic is locked and can not be replied to.