diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-08-22 06:20:09 +0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-08-22 06:27:06 +0400 |
commit | 3095483e650ae4fc79ff5012117877e5734b75ee (patch) | |
tree | f60b4856ec19e7597bf76b220adac8d026febece /features/support | |
parent | 3784f134f1b2a34ce751bba0caf423d2779e604f (diff) |
Speed up the "Project Network Graph" cucumber feature
This change involves stubbing out the call to `Grit::Commit.find_all`
and limiting the number of commits to 10 vs. the standard of 650 used by
`Gitlab::GraphCommit.to_graph`.
Prior to this change, this single feature required almost 3 minutes of
running time and over 2 GB of memory on my machine. Now it takes less
than 3 seconds.
Diffstat (limited to 'features/support')
-rw-r--r-- | features/support/env.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/features/support/env.rb b/features/support/env.rb index 496f23f9894..78d829c1a2f 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -44,3 +44,5 @@ require 'headless' headless = Headless.new headless.start + +require 'cucumber/rspec/doubles' |