Johan Brook

  • About
  • Heroes
  • Archive
  • Projects
  • Log
  • Contact

What's this?

I'm Johan, and I'm interested in interface design and front-end development. I freelance as web designer and developer, and study Software Engineering in Gothenburg, Sweden.
More about me

  • Twitter

    @johanbrook
  • Subscribe with RSS

    johanbrook.com/feed
  • E-mail me

    johan at johanbrook . com
More contact stuff
Linked http://37signals.com/svn/posts/3159-testing-like-the-tsa

A word about testing code →

‹ Previous post · Next post ›

April 12, 2012 · Permalink · Read more posts about Development

If you’re doing the right amount of testing, there should be a good chance, whenever you kick off a test run, that your actions for the next hour will change depending on the results of the run. If you typically don’t change your actions based on the information from the tests, then the effort spent to write tests gathering that information was wasted.

Comment from the HN thread of the linked article (Permalink)

David Heinemeier Hansson writes about sane amounts of software tests, which he ranted a bit about on Twitter today. I haven’t enough experience with tests yet, so I can’t give valid comments, but I’ve begun to understand what he and others are talking about thanks to a heavy focus on unit tests in a university course. Putting tons of time on writing tests instead of actual code seem insane to me, and David’s thoughts about having advice on what not to test seems legit to me (I recommend reading the comments on the Hacker News entry as well).

In the end I think it boils down to a healthy balance, as with everything else in life.


Johan Brook 2007-2013 · Godkänd för F-skatt