ruby on rails - Cucumber is very slow when running tests [Tested on two different Fedora machines] -



ruby on rails - Cucumber is very slow when running tests [Tested on two different Fedora machines] -

i new bdd. every time seek using cucumber, find pretty slow. have tried rails 3.0.9 & 3.1 on 2 different machines. 1 of machines old ibm thinkpad laptop 2 gb ram; , other 1 pc 4 gb ram [i can exact specifications if required]. both run fedora 14.

even new application no scnerios cucumber take minutes. here how goes:

$ cucumber using default profile... --- 2 minutes delay---- , says: 0 scenarios 0 steps 0m0.000s

in contrast, rspec instant:

rspec no examples found. finished in 0.00005 seconds 0 examples, 0 failures

while cucumber says took 0m0.000s ; has taken 2 minutes in reality. and, rspec instant , shows time correctly well: 0.00005 seconds.

is normal. need additional gems or settings create process faster.

update: here more data:

first cucumber:

$time cucumber using default profile... 0 scenarios 0 steps 0m0.000s real 0m53.489s user 0m37.051s sys 0m1.973s

and rspec

$ time rspec spec/ no examples found. finished in 0.00005 seconds 0 examples, 0 failures real 0m1.925s user 0m1.032s sys 0m0.155s

you're blaming slowness on wrong tool. what's slow ruby , rails' startup time, not cucumber. known.

ruby-on-rails ruby-on-rails-3 cucumber bdd

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -