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

Improve specs performance #259

Merged
merged 3 commits into from
Jan 31, 2020
Merged

Improve specs performance #259

merged 3 commits into from
Jan 31, 2020

Conversation

rjherrera
Copy link
Member

@rjherrera rjherrera commented Jan 31, 2020

This PR improves test speeds by changing default test values for some recipes to none. This prevents unnecesary steps like rails generate active_storage:install in every spec.

This PR also adds 2 flags to the base template (which are passed to rails new): --skip-bundle-install and --skip-webpack-install. This addresses #252 as the frontend recipe is now the only one that executes rails g webpack:install. This also avoids multiple calls of bundle install, as it is called from one recipe.

* P.S.: Webpacker gem is included by default by rails even with the --skip-webpack-install (and it is a expected behaviour, as the flag is only intended to skip the :install steps).

closes #252, closes #257

@rjherrera rjherrera requested a review from difernandez January 31, 2020 18:19
@rjherrera rjherrera changed the title Tests speed Improve specs performance Jan 31, 2020
Copy link
Contributor

@difernandez difernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 No cacho bien por qué el skip-bundle si

@rjherrera rjherrera merged commit 13e86ec into master Jan 31, 2020
@rjherrera rjherrera deleted the tests-speed branch January 31, 2020 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Tests take too much time Webpacker being added and installed twice
2 participants