Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPEC] Profile slowest cucumber features #642

Merged
merged 1 commit into from
Aug 12, 2019

Conversation

sfgeorge
Copy link
Member

Fork-lifted a technique from https://itshouldbeuseful.wordpress.com/2010/11/10/find-your-slowest-running-cucumber-features/ for profiling slow cucumber tests. Particularly helpful with how slow some of the cucumber tests are running/timing-out on some JRuby builds currently.

Here's an example of the output:

------------- Top 22 slowest scenarios -------------
86.15  features/cli_start.feature::Command start with only path works properly
82.52  features/cli_start.feature::Command start with no path inside of the app directory
22.84  features/cli_start.feature::Starting without the console
21.46  features/controller_generator.feature::Generate a controller with lower-case name
21.23  features/controller_generator.feature::Generate a controller and a test file
12.18  features/cli_plugin.feature::Command create_rubygem_hook
10.89  features/cli_plugin.feature::Command create_github_hook
9.9  features/plugin_generator.feature::Generate the basic structure for a plugin with a constant name
8.97  features/cli_create.feature::Generate application with valid layout
8.59  features/cli_create.feature::Generate application --empty
8.58  features/cli_basic.feature::No arguments given
8.53  features/cli_create.feature::Running create with no arguments
8.43  features/plugin_generator.feature::Generate the basic structure for a plugin with an underscored name
8.42  features/cli_generate.feature::Generator help
8.38  features/cli_plugin.feature::No arguments given
8.29  features/cli_basic.feature::Command help
8.28  features/cli_plugin.feature::Command help
8.26  features/cli_generate.feature::Listing generators
8.24  features/cli_basic.feature::Command version should print the version
8.18  features/cli_start.feature::Command start with no path outside of the app directory
8.12  features/cli_plugin.feature::Unrecognized commands
8.08  features/cli_basic.feature::Unrecognized commands

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.232% when pulling 162fa7c on sfgeorge:profile-slow-cucumber-features into a90115a on adhearsion:develop.

@bklang
Copy link
Member

bklang commented Aug 9, 2019

@sfgeorge Was this an investigational PR, or did you want to merge it?

@sfgeorge
Copy link
Member Author

@bklang Thanks! I'm thinking this would be good as a constant addition. Ready for review & feedback from you, @lpradovera and anyone else who has input. Danke! 🙇

@bklang bklang merged commit 17e3e2e into adhearsion:develop Aug 12, 2019
@sfgeorge
Copy link
Member Author

woo-woo! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants