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

Run rspec with --profile flag by default in Python #5607

Merged

Conversation

deivid-rodriguez
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez commented Aug 31, 2022

This flag prints the slowest 10 specs and their run times after each rspec run.

Because our Python test suite is so slow, It just occurred to me that maybe using it by default in Python would raise awareness on the areas that need more love with regards to test speed.

@deivid-rodriguez deivid-rodriguez requested a review from a team August 31, 2022 17:04
It occurred to me that maybe printing to 10 slowest examples would raise
awareness on the areas that need more love with regards to test speed in
the Python suite, which is notoriously slow.
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/rspec-profile-by-default-in-python branch from 5c74e1a to cd55bac Compare September 8, 2022 16:33
@deivid-rodriguez deivid-rodriguez requested a review from a team as a code owner September 8, 2022 16:33
@deivid-rodriguez
Copy link
Contributor Author

@jurre I just noticed that updater does this same thing, but enabling profiling through configuration instead (config.profile_examples), so I changed this PR to do just that too for consistency 👍. I will merge after CI if that's ok!

@deivid-rodriguez deivid-rodriguez merged commit 930355f into main Sep 8, 2022
@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/rspec-profile-by-default-in-python branch September 8, 2022 17:19
@pavera pavera mentioned this pull request Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants