Hard Lesson

07/30/09

Permalink 08:23:29 pm, by truewill Email , 113 words, 73 views   English (US)
Categories: Tips, Testing, Agile

Hard Lesson

Today I was working on refactoring several classes. I had some tests in place, but these were edging towards integration tests. The design of our persistence layer is a bit too coupled to a database. Because of this, the tests took more than a few seconds to run. After a few successful refactorings, I started to get some Level 3 confidence and made multiple changes before running the tests.

Naturally, four of the tests failed. I was reluctant to roll back all my changes, and it took me quite some time to get all the tests to pass. I was lucky, too, as every additional change I made increased the risk of further failures.

Comments, Pingbacks:

No Comments/Pingbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
The name truewill is composed of two other words. What is the SECOND word?

Development Central

Development Central is the blog of Bill Sorensen, a professional software developer. Much of this will relate to C#, .NET, and OOP in general.

Disclaimer
These postings are provided "AS IS" with no warranties and confer no rights.

Search

Categories

Linkblog

b2evolution

contributors

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 2

powered by b2evolution free blog software