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

Avoid running bundler on tests that don't need it #10070

Merged
merged 1 commit into from Apr 3, 2013
Merged

Avoid running bundler on tests that don't need it #10070

merged 1 commit into from Apr 3, 2013

Conversation

rubys
Copy link
Contributor

@rubys rubys commented Apr 3, 2013

Railties test timings on Intel(R) Core(TM) i3 CPU 550 @ 3.20GHz

Before: 18m19.854s
After: 8m57.653s

@rubys
Copy link
Contributor Author

rubys commented Apr 3, 2013

/cc @steveklabnik

@vipulnsward
Copy link
Member

This is awesome!

@@ -61,7 +61,10 @@ def destination(path)
# You can provide a configuration hash as second argument. This method returns the output
# printed by the generator.
def run_generator(args=self.default_arguments, config={})
capture(:stdout) { self.generator_class.start(args, config.reverse_merge(destination_root: destination_root)) }
capture(:stdout) do
args << '--skip-bundle' unless args.include? '--dev'

Choose a reason for hiding this comment

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

Just wondering: can't this "mutate" the default_arguments option in different runs?

@carlosantoniodasilva
Copy link
Member

Awesome @rubys, thank you ❤️

@senny
Copy link
Member

senny commented Apr 3, 2013

great! 💛

maybe we can squash the commits together.

@wangjohn
Copy link
Contributor

wangjohn commented Apr 3, 2013

👍

pixeltrix added a commit that referenced this pull request Apr 3, 2013
Avoid running bundler on tests that don't need it
@pixeltrix pixeltrix merged commit a957cb7 into rails:master Apr 3, 2013
@guilleiguaran
Copy link
Member

Thank you very much sir!!! ❤️ ❤️ ❤️

@steveklabnik
Copy link
Member

Soooooo good.

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

Successfully merging this pull request may close these issues.

None yet

8 participants