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.

Standup meeting<br />

Ok, so if we test every<br />

single method, we’ll have<br />

100% coverage, right?<br />

testing and continuous integration<br />

Mark: No, I don’t think so; running every method doesn’t mean<br />

every line <strong>of</strong> each method will run. We need to have different kinds<br />

<strong>of</strong> tests to get to all the different error conditions and branches.<br />

Laura: Wow...so I guess every variation <strong>of</strong> every method should have<br />

a separate test?<br />

Bob: But how are we going to do all that? We’ll have to make up all<br />

kinds <strong>of</strong> bogus data to get every weird error condition. That could<br />

take forever...<br />

Mark: And that’s not all. We’ve got to try things like pulling the<br />

network plug at some point to test what happens if the network goes<br />

down and I/O problems crop up.<br />

Bob: You don’t think that’s going a little too far?<br />

Mark: Well, if we want to catch all <strong>of</strong> the corner cases and every bit<br />

<strong>of</strong> exception handling...<br />

Laura: But a lot <strong>of</strong> that stuff never really happens...<br />

Bob: Then why did I bother to write all that exception-handling<br />

code? I’ve got all kinds <strong>of</strong> logging and reconnection code in my<br />

methods. Now you’re saying I didn’t need to write that?<br />

Mark: You did, but—<br />

Laura: This is impossible!<br />

Download at WoweBook.Com<br />

you are here 4 263

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

Saved successfully!

Ooh no, something went wrong!