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.

Continuous integration (CI)<br />

Test-driven development<br />

(TDD)<br />

Each class is listed individually<br />

(broken up by package) One measure <strong>of</strong> testing<br />

coverage is line coverage-what<br />

percentage <strong>of</strong> the total lines<br />

<strong>of</strong> code are we executing<br />

through our tests?<br />

Test coverage<br />

Another measure is<br />

branch coveragehat<br />

percentage <strong>of</strong><br />

the alternate flows<br />

(ifs, elses, etc.) are<br />

we executing?<br />

The repository always builds<br />

because compilation and testing are part <strong>of</strong> check-in, and the<br />

code in the repository always works.<br />

What does this technique <strong>of</strong>fer?<br />

Nobody checks out code and<br />

finds out it doesn’t work, or doesn’t compile. Bug reports<br />

should go down, since code must pass tests to be checked in.<br />

How do you know if it worked?<br />

A way to ensure your code<br />

is testable from the very beginning <strong>of</strong> development. Also<br />

introduces test-friendly patterns into your code.<br />

What does this technique <strong>of</strong>fer?<br />

Fewer bugs because testing<br />

starts earlier. Better coverage, and every line <strong>of</strong> code<br />

matters. Possibly better design, and less legacy code.<br />

How do you know if it worked?<br />

How do you know if it worked?<br />

the real world<br />

What does this technique <strong>of</strong>fer? Better metrics on how much<br />

code is being tested and used. A way to find bugs because they<br />

usually exist in untested and uncovered code.<br />

Bugs becomes focused on edge<br />

cases because the main parts <strong>of</strong> code are well-tested. Less<br />

unused or “cruft” code that’s uncovered and not useful.<br />

Download at WoweBook.Com<br />

you are here 4 423

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

Saved successfully!

Ooh no, something went wrong!