01.02.2013 Views

Software Development Cross Solution - Index of - Free

Software Development Cross Solution - Index of - Free

Software Development Cross Solution - Index of - Free

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Getting good coverage isn’t always easy...<br />

Now that we’ve gotten our heads around coverage, let’s look<br />

back at BeatBox Pro. Now that we know what to look for,<br />

there are all kinds <strong>of</strong> things not being tested:<br />

Here’s the MusicServer. We really<br />

haven’t tested any <strong>of</strong> this code.<br />

This won’t be too bad to automate,<br />

though, since there’s no real GUI.<br />

We do have to deal with all <strong>of</strong> the<br />

network stuff though, so that will<br />

take some time.<br />

We don’t have any GUI<br />

test code...which is how we<br />

missed the latest BeatBox<br />

Pro bug in the customer<br />

demo.<br />

These are our client<br />

BeatBox applications.<br />

We’ve written some code<br />

to test the receiving side.<br />

There are some things that are just inherently hard to test. GUIs actually<br />

aren’t impossible; there are tools available that can simulate button clicks and<br />

keyboard input. Things like audio or 3-D graphics, though, those are tough. The<br />

answer? Get a real person to try things out. <strong>S<strong>of</strong>tware</strong> tests can’t cover all the<br />

different variations <strong>of</strong> an animated game or audio in a music program.<br />

So what about code you just can’t seem to reach? Private methods, third-party<br />

libraries, or maybe your own code that’s abstracted away from the inputs and<br />

outputs <strong>of</strong> your main interface modules? Well, we’ll get to that in just a few more<br />

pages, in Chapter 8.<br />

And then...enter test-driven development.<br />

Download at WoweBook.Com<br />

testing and continuous integration<br />

We don’t have any sound<br />

testing code, either. Lots<br />

<strong>of</strong> MIDI—not easy stuff<br />

to write tests for.<br />

you are here 4 267

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!