Chapter 7. Testing and Continuous Integration: Things fall apart

image with no caption

Sometimes even the best developer breaks the build. Everyone’s done it at least once. You’re sure your code compiles; you’ve tested it over and over again on your machine and committed it into the repository. But somewhere between your machine and that black box they call a server, someone must have changed your code. The unlucky soul who does the next checkout is about to have a bad morning sorting out what used to be working code. In this chapter we’ll talk about how to put together a safety net to keep the build in working order and you productive.

Things will ALWAYS go wrong...

Everyone who’s ever done development knows what it’s like. It’s late, you’re on you’re eleventh can of Rock Star energy drink, and you still leave out that one ++ operator somewhere. Suddenly, your elegant code goes to pieces...bad news is, you don’t realize you’ve got a problem.

At least, not until you’re demoing the software for your boss. Remember the issues we had with Bob’s code in Chapter 6?

image with no caption

Brain Power

What other kinds of things can go wrong on a development project? What about with a small team? Do you have the same problems with a bigger team? Different problems?

Standup meeting

Bob: I did get it compiling! It took me forever to integrate ...

Get Head First Software Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.