Tag Archives: Testing

Debug logging with Xcode 4 breakpoints

NSLog calls do not belong in release builds. Logging is slow and the performance impact of log statements on a device can be considerable. Logging is also noisy, it can obscure useful debugging information and may leak information you would … Continue reading

Posted in Mobile | Tagged , , , , | 10 Comments

Generating documentation from specs

On one of our rails projects I am creating an api to allow mobile clients to access a web service. I need to provide documentation of this API to the developers of several different clients during its development. Normally I … Continue reading

Posted in Web | Tagged , , , | 1 Comment

Running Xcode 4 unit tests from the command line

Command line builds for Xcode 4 projects are a good first step but I really want to get my project’s tests running on a continuous integration server again. Since “test” isn’t a valid build action to pass to xcodebuild I’ve … Continue reading

Posted in Mobile | Tagged , , , | 14 Comments

Raking and Testing with EventMachine

I have been getting more and more interested in high-performance Ruby apps, and in EventMachine in particular. First of all, super props to Aman Gupta for EM, and to some other Ruby devs out there who have been writing libraries … Continue reading

Posted in Process, Web | Tagged , | 14 Comments

Speedy Test Iterations for Rails 3 with Spork and Guard

Overview TDD is fun, right? Rails enthusiasts and agile evangelists alike agree. Waiting for your tests to run, however, makes for a frustrating experience. When the time between test iterations is magnified by bloated tests it can be hard to … Continue reading

Posted in Process, Web | Tagged , , , , , , | 28 Comments

TDD your way to a richer domain model

A well established and accepted design principle in the Rails community is “skinny controller, fat model”. This involves placing an application’s domain logic in models and keeping the request handling controllers simple and sparse (i.e. “skinny”). The result is a … Continue reading

Posted in Process, Web | Tagged , , | 1 Comment

Ew… you got CSS in my Javascript

The other weekend I test drove a little Javascript library to output CSS style rules from within Javascript. I took the most obvious Javascript-literal approach to get the most out of Javascript support in editors. I called it Csster (“sister”), … Continue reading

Posted in Web | Tagged , , , , , , | 1 Comment

RSpec best practices

Rspec is a great tool in the behavior driven design process of writing human readable specifications that direct and validate the development of your application. We’ve found the following practices helpful in writing elegant and maintainable specifications. First #describe what … Continue reading

Posted in Process, Web | Tagged , | 45 Comments

Continuous integration for iPhone projects in TeamCity

Carbon Five has been using TeamCity as our continuous integration server for most of our recent projects, including our iPhone work. Out continuous integration environment monitors the git repository used by each project, runs the project’s tests each time a … Continue reading

Posted in Mobile | Tagged , , , | 3 Comments

Deploying to Heroku from TeamCity

Previously I discussed our TeamCity configuration using RVM and mentioned that we often use git to deploy projects. Today I’ll share an example of how a TeamCity build agent can trigger deployments of a application hosted on Heroku and some … Continue reading

Posted in Web | Tagged , , , , , | 2 Comments