×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Unit Testing for Great Justice

by Software Engineer at Lab49 on Aug 21, 2012

  • 2,069 views

The discovery of unit testing and test-driven development was one of the most important parts of my growth as a developer. The ability to write simple, small pieces of code that could verify the ...

The discovery of unit testing and test-driven development was one of the most important parts of my growth as a developer. The ability to write simple, small pieces of code that could verify the behavior of my application was in itself quite useful. And the ability to refactor without fear, just by running the test suite, changed how I program. But the real benefits come in how unit tests shape your application code: more testable code is often more well thought-out, more decoupled, and more extensible.

In this talk, I'll give a whirlwind introduction to unit testing as a concept and as a practice. I want you fully convinced it's the best thing to happen to software development, if you aren't already. Once we're on the same page there, I'll take a deep dive into what makes a good unit test. This involves testing tools such as spies, stubs, and mocks, concepts like code coverage, and practices like dependency injection that shape your application code. The most important lesson will be on how to focus on singular, isolated units of code in your testing, as this guides you toward building modular, flexible, and comprehensible applications.

Statistics

Views

Total Views
2,069
Views on SlideShare
2,060
Embed Views
9

Actions

Likes
0
Downloads
26
Comments
1

3 Embeds 9

http://www.linkedin.com 4
https://si0.twimg.com 3
https://twimg0-a.akamaihd.net 2

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

Post Comment
Edit your comment

Unit Testing for Great Justice Unit Testing for Great Justice Presentation Transcript