Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Improve the speed of specs & features

#6

To help speed things up, we need to improve the speed of our tests, stubbing and mocking out external dependencies as much as possible.

The first culprit would be centered around importing features to Salad, this should be the first port of call

Reported by baphled@boodah.net · April 8th, 2010 @ 08:14 PM

State: open
Milestone: none
Assigned to: baphled@boodah.net baphled@boodah.net

Activity

  1. baphled@boodah.net
  2. baphled@boodah.net
    baphled@boodah.net
    • State changed from new to open

    We'll first stub out the retrieval of feature file and limit it 2 a couple to start with.

    April 13th, 2010 @ 09:59 AM

  3. baphled@boodah.net
    baphled@boodah.net

    Refactored specs to speed up the tests.

    April 13th, 2010 @ 12:27 PM

  4. baphled@boodah.net
    baphled@boodah.net

    Made further improvements to /projects/import & projects spec.

    April 13th, 2010 @ 08:13 PM

  5. baphled@boodah.net
    baphled@boodah.net

    Need to look at features/plain/import_a_single_feature.feature

    April 21st, 2010 @ 09:37 PM

  6. baphled@boodah.net
    baphled@boodah.net

    Features now running at

    Cucumber plain

    
    208 scenarios (208 passed)
    1178 steps (1178 passed)
    4m57.927s
    

    Rspec

    
    Finished in 40.55213 seconds


    288 examples, 0 failures
    on a 1200MHz Intel(R) Core(TM)2 Duo CPU

    Feature could do with speeding up some more

    April 21st, 2010 @ 10:12 PM

  7. baphled@boodah.net
    baphled@boodah.net

    Added is a copy of the rspec profile, displaying the slowest specs on the above box, we'll focus on improving these tests next.

    April 22nd, 2010 @ 10:18 PM

  8. baphled@boodah.net
    baphled@boodah.net

    RSpec

    
    Finished in 48.084478 seconds


    287 examples, 0 failures
    Cucumber
    
    208 scenarios (208 passed)
    1178 steps (1178 passed)
    3m50.018s
    

    On

    
      Processor Name:   Intel Core 2 Duo
      Processor Speed:  2 GHz
      Number Of Processors: 1
    

    April 26th, 2010 @ 02:09 PM

  9. baphled@boodah.net
    baphled@boodah.net
    • Milestone cleared.

    Im sure these features could be improved some what more but this is a bigger improvement from the speed we were getting initially.

    April 26th, 2010 @ 02:10 PM

  10. baphled@boodah.net
    baphled@boodah.net

    Will move to another milestone.

    April 26th, 2010 @ 03:44 PM

  11. baphled@boodah.net
    baphled@boodah.net
    • Milestone set to 0.8.2
    • Milestone order changed from 0 to 0

    June 29th, 2010 @ 10:34 AM

  12. baphled@boodah.net
    baphled@boodah.net

    Selenium

    
    159 scenarios (29 undefined, 130 passed)
    937 steps (8 skipped, 46 undefined, 883 passed)
    4m4.395s
    

    Cucumber

    
    26 scenarios (26 passed)
    132 steps (132 passed)
    3m37.560s
    

    On

    
    Processor Name:   Intel Core 2 Duo
      Processor Speed:  2 GHz
      Number Of Processors: 1
    

    July 21st, 2010 @ 04:56 PM

  13. baphled@boodah.net
    baphled@boodah.net
    • Milestone order changed from 6 to 0

    Rspec

    
    Finished in 147.4069 seconds


    361 examples, 0 failures, 8 pending

    Cucumber

    
    259 scenarios (259 passed)
    1247 steps (1247 passed)
    20m44.310s
    

    On

    
    Dual core
    vendor_id       : GenuineIntel
    cpu family      : 6
    model           : 15
    model name      : Intel(R) Core(TM)2 Duo CPU     E4500  @ 2.20GHz
    stepping        : 13
    cpu MHz         : 1200.000
    cache size      : 2048 KB
    

    July 22nd, 2010 @ 09:22 PM

  14. baphled@boodah.net
    baphled@boodah.net
    • Milestone cleared.
    • Milestone order changed from 5 to 0

    August 5th, 2010 @ 01:19 PM

  15. baphled@boodah.net
    baphled@boodah.net

    As a temporary measure we can stub out or feature sync and import based specs. This should go along way to improving the overall speed of our specs.

    August 5th, 2010 @ 03:26 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.