---------- Forwarded message ----------
From:
Maxwell Salzberg Date: Saturday, March 31, 2012
Subject: [D*] hella spork, y'all
To:
diaspo...@googlegroups.com
Hey everyone,
Just wanted to let you know about a great new testing tool which was submitted by Tubbo (aka Tom Scott), which is going to make hacking on big features on Diaspora much easier
Earlier in the week, we out the request for Spork+Guard support in Diaspora's test suite. (
https://github.com/sporkrb/spork). Its one of those things thats a big pain in the butt to set up, but once you have it it can totally change your life!
Basically, spork "pre-forks" your Rails environment, and only reloads your tests. That way, you can be a good person and run them over and over again quickly, as you are refactoring code. This is huge, because Rails 3.1 takes forever to load, and previously we had to wait for that every time we fixed a typo in a test or added a new one.
To see the magic for yourself, first fire up spork
bundle exec spork rspec
then in another terminal, run any rspec command, like
bundle exec rspec spec/models/invite_code_spec.rb
Did you see how fast that ran!?!?!? It is amazing!
Feel free to ask any questions about Spork, or share any tips, as I am sure this tool has lots of places we could further improve and make it even easier to develop on Diaspora. Please let us know if you see any bugs as well.
Thanks again to Tom, and all you lovely people out there making killer pull requests.
xoxo,
maxwell
ps I am visiting my rents back east this weekend, so if I seem slightly less responsive this weekend, its mostly because I am hanging out with my folks. thanks for understanding.
--
You received this message because you are subscribed to the Google Groups "diaspora-dev" group.
To post to this group, send email to
diaspo...@googlegroups.com.
To unsubscribe from this group, send email to
diaspora-dev...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/diaspora-dev?hl=en.