Lasse Koskela on the importance of test code

Lasse Koskela on the importance of test code

date:Mar 18, 2011

Lasse Koskela, the author of Test Driven: Practical TDD and Acceptance TDD for Java Developers, talks with executive editor Jan Stafford about the importance of test code just after he presented the technical session "Test Smells in Your Code Base" at TheServerSide Java Symposium.


Read the full transcript from this video below:  

Lasse Koskela on the importance of test code

Jan Stafford: Hi, this is Jan Stafford, Executive Editor of The Service
Side, behind the camera. And?

Lasse Koskela: Lasse Koskela

Jan Stafford : You just did a session on test code, and tell me, what do
you think are some of the most common problems people have in perfecting
their test code?

Lasse Koskela: So, well starting from not having tests of course, I think
that's the biggest problem I see but with code bases that have tests, I
think, the biggest problem is generally that people don't take care of
their tests. You write them once and then you leave them until they break,
and then you fix them anyway you can. I think that's the biggest problem,
so people don't really nurture their test codes.

Jan Stafford: So do you think that there's a perception that test code is not
as important as production code? And what might be wrong with that
assumption?

Lasse Koskela: I think people definitely behave that way in general. So what
happens is, you don't pay attention to the test. It's tedious, and whatever
the reason originally was, it's a vicious cycle, so it gets worse and worse
over time. I think at some point people might even use the excuse that test
code isn't as important. I think that it definitely is as important as
production code, because the test code basically documents and verifies
your code words. So if you leave it for half a year, come back, how do you know
it's correct, how do you know its working? It's a lot of effort to test
manually and it's so much easier if you develop your tests and code at the
same time, using the same methods, using the same design principles and
good practices. It makes it definitely worth it.

Jan Stafford: Thank you.

Lasse Koskela: Thank you.

More on Open source Java

  • canderson

    Apache Camel news from JavaOne 2011

    VIDEO - Apache Camel, the open source integration framework, is enjoying an upward swing in popularity as the community prepares for the upcoming release of Camel 3.

    ( Oct 12, 2011 )

  • canderson

    Does Open Source Mean Superior Software Quality?

    VIDEO - James Strachan, the man who believes he invented Groovy, presented a lightninground session at TheServerSide Java Symposium to speak about FuseSource and Open Source Software. In that discussion, he asserts that there are reasons why open source projects may in fact be higher in quality than software one might purchase from a vendor.

    ( May 10, 2011 )

  • canderson

    Jonathan Fullam on Test-Driven Development

    VIDEO - Jonathan Fullam talks about the benefits of test driven development, the connection between Java and test-driven design, and how test driven design helps in the bug-fixing stage of testing.

    ( Mar 18, 2011 )

  • The highlights of Java EE 8

    News - At JavaOne 2014, the latest features and upgrades of Java EE 8 were highlighted.

    ( Sep 30, 2014 )

  • Will Java 8 Lambda expressions really change JavaEE development?

    Feature - One of the most anxiously anticipated Java 8 features was the addition of Lambda expressions. But after almost a year since their release, are they actually being adopted, and will they really have any impact on how JavaEE applications are developed?

    ( Sep 10, 2014 )

  • Advanced JSF Tutorial: The single page interface (SPI) with Facelets, Ajax and HTML5

    Tutorial - Some say it's impossible, but if you really understand the technology, you will realize that creating a single page interface (SPI) with JSF, Facelets, Ajax and HTML really isn't all that hard. In fact, JavaServer Faces makes it pretty easy!

    ( Sep 07, 2014 )

  • Integrating Ajax into your Facelets pages: Death to JSF's request-response cycle

    Tutorial - If you're doing Facelets development, this might be the most important tutorial you will ever read. It will explain to you how to throw out that annoying request-response cycle, and explain how to integrate Ajax based JSF components with a dynamically re-rendering Facelets page snippet.

    ( Jul 20, 2014 )

  • Turning a web page into a JSF 2.0 template with Facelets

    Tutorial - How do you take a web page and turn it into a template using Facelets as the template engine? It takes some JSF, some HTML, maybe some CSS, and lots of JSF UI tags, but overall, it's an easy and simple process if you follow this tutorial.

    ( Jul 19, 2014 )