I have a need, a need for a quote from an iconic 80's film

by Kofi Sarfo 7. October 2009 00:52

It's been almost one week since we started doing this daily code Kata: Roy Osherove's TDD Kata 1 - String Calculator. Thirty minutes every day in October so far. Six days. Three hours. Writing the same functionality over and over. What happens is that, naturally, each time we get a little closer to the end (we've not yet completed it in thirty minutes) and we optimise by anticipating functional requirements and code to allow for simple changes ahead. We'll decide how much of this is cheating once we're actually done a few times within thirty minutes before moving onto the next Kata.

We're using just the one code snippet, TDDtestmethod, which generates a test method. We abandoned the calculator variable name, opting for c.Add instead.

Is there a prize for the longest [Test] case method name?

Calculator_ MultipleDelimeterVaryingLengthSpecifiedDelimitedMultipleStringDecimalValues_ ShouldReturnSummedValues()

Using underscores would only make matters worse. And when we looked at some of our tests recently we discovered that we were unit testing parts of the framework (guess we're still not sure about Entity Framework) and using unit tests for spikes too. The words "Gone Too Far" appeared suddenly.

Tags: ,

Dojo

Comments are closed

Kiva Loans

  • Margret

    Margret

    Personal Housing Expenses

    Requested loan: $625

    Amount raised: $0

    Masindi, Uganda

    to buy iron sheets and doors for her house.

    Loan Now »

  • St Theresa Women Group

    St Theresa Women Group

    Clothing

    Requested loan: $3100

    Amount raised: $0

    Kasese, Uganda

    to buy clothes.

    Loan Now »

  • Zephanus

    Zephanus

    Fish Selling

    Requested loan: $200

    Amount raised: $0

    Kasese, Uganda

    to buy fish to sell.

    Loan Now »

To see more entrepreneurs »

Make a loan to an entrepreneur across the globe for as little as $25. Kiva is the world's first online lending platform connecting online lenders to entrepreneurs across the globe.