Lasse Koskela on the importance of test code

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

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 )

  • Containers and microservices take center stage as Devoxx 2015 kicks off

    Feature - Containers like Docker, and microservice development, are the big topics at Devoxx 2015, but with more session rooms than every, there's plenty of other great fare for Java professionals.

    ( Nov 10, 2015 )

  • Top 7 Java platform takeaways from JavaOne 2015

    Feature - What were the big takeaways from JavaOne 2015 with regards to the Java platform? Here we take a look at seven key insights garnered from this year's JavaOne and Oracle Open World conferences.

    ( Nov 02, 2015 )

  • Valhalla and value types to change the way developers code in Java

    Feature - In 2014, just as Java 8 was released, JavaOne was looking towards the future and talking about what was coming with Java 9. In 2015, Java 9 is still in the future, but that hasn't stopped the architects at Oracle from prognosticating about what might get included in Java 10.

    ( Nov 01, 2015 )

  • Celebrating 20 years of Java technology at JavaOne 2015

    News - Twenty years is a pretty significant milestone, especially if you're a programming language. At JavaOne 2015, everyone is celebrating the 20th anniversary of the Java programming language, and looking ahead at the challenges another 20 years will bring.

    ( Oct 26, 2015 )

  • Redis creator signs with vendor amid community support

    Podcast - How did the Redis community feel when the creator of their coveted NoSQL database signed on with a commercial vendor? TheServerSide talks to Salvatore Sanfilippo to find out.

    ( Aug 27, 2015 )