cuken icon indicating copy to clipboard operation
cuken copied to clipboard

cucumber features too slow

Open melezhik opened this issue 13 years ago • 1 comments

time cucumber features/foo4.feature > log.txt
real    0m42.226s
user    0m39.081s
sys     0m1.004s 

cat log.txt

@announce
Feature: Interactive process control

  In order to test interactive command line applications
  As a developer using Cucumber
  I want to use the interactive session steps

  @ssh_remote
  Scenario: Running ruby interactively      # features/foo4.feature:8
    Given the file "echo.rb" contains:      # cuken-0.1.14/lib/cuken/cucumber/file.rb:36
      """
      while res = gets.chomp
        break if res == "quit"
        puts res.reverse
      end
      """
    When I interactively run `ruby echo.rb` # cuken-0.1.14/lib/cuken/cucumber/cmd/execution.rb:20
      $ cd /home/melezhik/tmp/cuken-test/tmp/aruba
      $ /home/melezhik/.rvm/rubies/ruby-1.9.2-p180/bin/ruby echo.rb
    And I type "hello, world"               # cuken-0.1.14/lib/cuken/cucumber/cmd/execution.rb:28
    And I type "quit"                       # cuken-0.1.14/lib/cuken/cucumber/cmd/execution.rb:28
    Then the output contains:               # cuken-0.1.14/lib/cuken/cucumber/output/all.rb:15
      """
      dlrow ,olleh
      """
1 scenario (1 passed)
5 steps (5 passed)
0m2.165s

gem env

RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.6
  - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/melezhik/.rvm/gems/ruby-1.9.2-p180@cuken
  - RUBY EXECUTABLE: /home/melezhik/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
  - EXECUTABLE DIRECTORY: /home/melezhik/.rvm/gems/ruby-1.9.2-p180@cuken/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/melezhik/.rvm/gems/ruby-1.9.2-p180@cuken
     - /home/melezhik/.rvm/gems/ruby-1.9.2-p180@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

gem list

archive-tar-minitar (0.5.2)                                               
builder (3.0.0)                                                           
bundler (1.0.18)                                                          
bunny (0.7.5, 0.7.2)                                                      
chef (0.10.4, 0.10.2)                                                     
childprocess (0.2.2, 0.2.0)                                               
cucumber (1.0.5, 1.0.2)                                                   
cuken (0.1.14)                                                            
diff-lcs (1.1.3, 1.1.2)                                                   
erubis (2.7.0)                                                            
fakefs (0.3.2)                                                            
ffi (1.0.9)                                                               
gherkin (2.4.18, 2.4.5)                                                   
git (1.2.5)                                                               
grit (2.4.1)                                                              
highline (1.6.2)                                                          
i18n (0.5.0)                                                              
jeweler (1.5.2)                                                           
json (1.5.2)                                                              
mime-types (1.16)
mixlib-authentication (1.1.4)
mixlib-cli (1.2.2, 1.2.0)
mixlib-config (1.1.2)
mixlib-log (1.3.0)
moneta (0.6.0)
net-scp (1.0.4)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh-multi (1.1, 1.0.1)
ohai (0.6.4)
open4 (1.1.0)
polyglot (0.3.2, 0.3.1)
rake (0.9.2)
rcov (0.9.10, 0.9.9)
reek (1.2.8)
rest-client (1.6.7, 1.6.3)
roodi (2.1.0)
rr (1.0.4, 1.0.3)
rspec (2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
rspec-mocks (2.6.0)
ruby2ruby (1.3.0, 1.2.5)
ruby_parser (2.3.0, 2.0.6)
rvm (1.6.32)
sexp_processor (3.0.6, 3.0.5)
systemu (2.3.0, 2.2.0)
term-ansicolor (1.0.6)
thor (0.14.6)
treetop (1.4.10, 1.4.9)
uuidtools (2.1.2)
vagrant (0.8.6)
virtualbox (0.9.2)
yajl-ruby (0.8.3, 0.8.2)
yard (0.6.8)

melezhik avatar Sep 13 '11 13:09 melezhik

Actually I found out that problems caused by cuken/vagrant and cuken/chef :

melezhik@melezhik ~/repos/SandBox/trunk/melezhik/cucumber $ cucumber --verbose

Code:
    * features/support/env.rb

    Features:
    Parsing feature files took 0m0.000s

   0 scenarios
   0 steps
   0m0.000s

  real    0m11.080s
  user    0m10.577s
  sys     0m0.483s

cat features/support/env.rb :

require 'cuken/vagrant'

the same with cuken/chef :

real    0m29.610s
user    0m28.703s
sys     0m0.877s

melezhik avatar Sep 14 '11 07:09 melezhik