Search The Blog
About this site

@RoyOsherove

Subscribe!

This site aims to connect all the dots of my online activities - from tools, books blogs and twitter accounts, to upcoming conferences, engagements and user group talks.

from 5whys.com
Twitter: @RoyOsherove
My Book: The Art of Unit Testing
Latest Posts
« My Videos | Main | TDD Course Day 2 – “What I Learned Today” »
Wednesday
Aug262009

TDD Master Class Day # 3 – “What I learned today”

Today’s edition had two questions: what was really hard to accomplish today, and what did you learn?

Good:

The different isolation frameworks

Swapping all instances of a type

How the Isolate.IgnoreCall method really works (it should be renamed! to DoNothing)

Keeping the test simple

No need to overuse isolation frameworks

Isolator stands out (easier to remember syntax)

Legacy code CAN be tested

important to recognize bloated tests (and refactoring it)

”got”  the “extract and override” pattern

Learned to use ”isolation” instead of ”mocking” frameworks

Manual stubs and mocks can really simplify tests

Hard:

Hard to go slow and incremental

Naming tests is still hard

Making legacy tests readable and less bloated

Creating tests that fail for the right reason

Testing legacy code

Mixed up the frameworks all the time

How to flip through docs

Override methods through a framework vs. manually

- making the frameworks work like i want

- Error messages on ALL isolatoin frameworks suck make them More like Nunit`s error messages

- IDE api tooltips for ALL isolation frameworks suck, including a few of Isolator

-

PrintView Printer Friendly Version

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>