Viewing All "tech" Posts
Our test suite is inching towards 90% coverage of our rather large codebase, and it just takes a long time to run all those tests. Currently 15 minutes on my machine.
Here’s a quick breakdown:
↳ rake stats +----------------------+-------+-------+---------+---------+-----+-------+ | Name | Lines | LOC | Classes | Methods | M/C | LOC/M | +----------------------+-------+-------+---------+---------+-----+-------+ | Controllers | 6480 | 4465 | 72 | 465 | 6 | 7 | | Helpers | 1923 | 1444 | 0 | 187 | 0 | 5 | | Models | 10895 | 7131 | 107 | 1120 | 10 | 4 | | Libraries | 2527 | 1666 | 33 | 244 | 7 | 4 | +----------------------+-------+-------+---------+---------+-----+-------+ | Total | 21825 | 14706 | 212 | 2016 | 9 | 5 | +----------------------+-------+-------+---------+---------+-----+-------+ Code LOC: 14706 Test LOC: 0 Code to Test Ratio: 1:0.0
And a run of rspec:
↳ rspec spec 3532/3532 |=================== 100 ===================>| Time: 00:16:34 Finished in 994.51 seconds 3532 examples, 0 failures
Here’s a summary of what’s going on with the codebase when running tests:
LOC: 14706 Test Count: 3432 Test Coverage: 78% Test Runtime: 16.5 minutes
I also grabbed cloc and ran that in our API directories to help get these stats:
API LOC: 1001 API Test Count: 812 API Test Coverage: 99% API Test Runtime: 4.2 minutes
API specs are contributing a significant amount of time to the overall runtime. I plan on improving that. That said, the API project is also much more completely tested than the majority of the codebase, so it will probably continue to contribute a large amount to the runtime. I am certain I can pull it down to 3 minutes, but I’d like to get as close to a minute as possible.
I’m curious what other Rails projects look like and how we compare. If you’re reading this and you are working on a Rails project (or something similar), then please leave a comment with your:
- Lines of Code
- % Spec Coverage
- Time to run specs
Send Your Unbounce Landing Page Leads to Zoho CRM
25,000 companies can’t be wrong, can they?
That’s how popular our newest integration partner is. Say hello to Zoho!
Zoho is an industry leading CRM and has consistently been one of the most requested integration partners by the Unbounce faithful.
With Unbounce and Zoho you can seamlessly capture lead information, boost conversion, and automate your sales workflow. No more manual imports, webhooks, or multiple services needed. Even manage your email marketing within Zoho!
Unbounce and Zoho CRM - sounds like a match made in #conversion heaven.
See how it works ⨠
Send Your Unbounce Landing Page Leads to Almost Any CRM, Email Marketing Tool, Task Manager, Phone, Spreadsheet
Good news everybody!
The folks at Zapier have an app that lets you integrate your Unbounce pages with just about any other service… and their repertoire is constantly expanding
Want your Unbounce form submissions to trigger SMS messages? Done. Integrate with Infusionsoft? Done. Add registrants in GoToWebinar. Done and done!
Set up is much easier than writing your own PHP and Zapier’s made a video to coach you through it:
As soon as we found this integration we started using it to send registrants (on our own landing pages) into GoToWebinar — #win
Director of Customer Success
Turn Unbounce into a Mac App
Love Unbounce? Use it every day? Grumble each time you have to launch your browser then click your Unbounce bookmark?
Thanks to the folks over at Fluid, you can turn Unbounce into your very own Mac App.
It’s super simple.
Download and install fluid then create your Unbounce app:
Fluid will automatically set the app’s icon from Unbounce’s favicon.
- URL: https://app.unbounce.com/
- Name: Unbounce
Ta-daa! Unbounce on your desktop!
~ Ryan Engley
Your Big Deploy is Bound to Fail, Unless…
For the most part, we try to keep our deploys small. Small, incremental changes deployed often just tend to be easier and reduce risk (contrary to what some software traditionalists might say or think about all that change all the time). But sometimes, that’s just not the way it turns out. Sometimes you just can’t avoid The Big Deploy, and all of the complexity and angst that goes with it. When that happens, you’d better be prepared. And the number one item you need to have in order is…
The Launch Playlist
Yes, it’s true, without an appropriate soundtrack your Big Deploy stands a good chance of failing in spectacular and unpredictable ways. Today at 3PM Pacific we’re launching Unbounce Multi-User & Multi-Client (MUMC, which I insist on pronouncing “mumsey”, much to the consternation of the rest of the team). This is a Big Deploy, with new servers (cloud, of course, but still), significant database changes, and lots and lots of brand new code. The entire operation is scheduled for 15 minutes, so I’ve carefully crafted a playlist to accompany the various stages of activity. It starts 90 seconds before the outage page goes up with…
2001: A Space Odyssey
Nothing says something big is about to happen and you should pay attention right nowlike the theme from 2001. I’m starting 20 seconds in (if you’ve ever listened to the whole thing, the first 20 seconds is pretty much one long drone until you get to that signature brass sequence). At this point, the team is all logged in, fingers are on keyboards waiting to fire off the commands to put up the outage page and begin the launch sequence. This segues nicely into…
The Theme from Indiana Jones
Yeah, here we go guys, we’re off on a grand adventure! The outage page goes up. Spirits are soaring, config files are changing, servers are shuffling, we are owning this deploy, dudes, and then…
It’s The End of the World (as We Know It)
Nothing ever goes 100% according to plan. Even if you have a complete, detailed, step-by-step plan including every single change, with individuals assigned to each one, and accurate time estimates (like we do, so there), there’s always something that goes just a little sideways. But I’m an optimist, so I’ve selected the shorter, slightly more frantic Great Big Sea version. I expect we’re going to get through anything that comes up quickly, so then we queue…
We Are The Champions
If your deploy checklist is detailed enough, you’ve done your dry-run, QA has given the thumbs up, and your automated tests are all green, then it’s likely any little wrinkles that show up are just that; little. Now there’s just one thing left…
Don’t Look Back
Boston cranks out almost six whole minutes of feel-good stadium rock with this one. At this point, it’s all putting the final pieces into place before we bring the outage page down, ushering the salivating hoards into our shiny new arena so they can enjoy the fruits of our months of hard coding labour. And then it’ll be time to crack a cold one, sit back, watch the log files, and congratulate ourselves on a Big Deploy well done…