« Review - Mophie Juice Pack (not the Juic... | Main | July 7th - Seattle/Redmond/Bellevue Nerd... »

ArtOfUnitTesting My one-hundred-and-sixty-ninth podcast is up. In this show recorded in Norway, Roy Osherove educates Scott on best practices in Unit Testing techniques and the Art of Unit Testing.

Also, be sure to check out Roy's talk at the recent Norwegian Developer's Conference, they're quite excellent and worth your time.

Roy's Publisher has given Hanselminutes listeners a code until August 1st, 2009 for 37% off. The code is "hansel37" and it's good at http://www.manning.com and takes the price to US$25.19. Oddly in other ironic news, the book is (tonight at least) $26.39 on Amazon. Go figure.

Links from the Show

Subscribe: Subscribe to Hanselminutes Subscribe to my Podcast in iTunes

Do also remember the complete archives are always up and they havePDF Transcripts, a little known feature that show up a few weeks after each show.

Telerik is a sponsor for this show!

Building quality software is never easy. It requires skills and imagination. We cannot promise to improve your skills, but when it comes to User Interface, we can provide the building blocks to take your application a step closer to your imagination. Explore the leading UI suites for ASP.NET and Windows Forms. Enjoy the versatility of our new-generation Reporting Tool. Dive into our online community. Visit www.telerik.com.

As I've said before this show comes to you with the audio expertise and stewardship of Carl Franklin. The name comes from Travis Illig, but the goal of the show is simple. Avoid wasting the listener's time. (and make the commute less boring)

Enjoy. Who knows what'll happen in the next show?



Monday, July 06, 2009 12:33:29 AM (Pacific Standard Time, UTC-08:00)
I am curious how you get PDF transcripts of your podcasts. Is it some tool you run over the podcast and then proof-read? (Hope its not manually done)

This tool if it exists will sure be of use to folks like me who can read faster than go thru podcasts and prefer reading transcripts...

Thanks!
Durga
Monday, July 06, 2009 2:25:22 AM (Pacific Standard Time, UTC-08:00)
@Durga : From what I've seen the transcripts appear after 3-4 other podcasts. I guess it takes time to transcript them.
Monday, July 06, 2009 2:33:05 AM (Pacific Standard Time, UTC-08:00)
This is an awesome book with real life examples. Every one should Go and get this.
Monday, July 06, 2009 8:51:49 AM (Pacific Standard Time, UTC-08:00)
The Transcripts are done by non-technical humans.
Monday, July 06, 2009 10:14:20 PM (Pacific Standard Time, UTC-08:00)
With regard to your question about how many "negative" test cases to write:

I like to think that the tests establish my contract for the thing I'm testing. If there's a test there, it's because some other code probably depends on the functionality working that way. If there's no test, it's because there's no guarantee about how the functionality will work (that behavior is "implementation dependent"). Over-specifying your conditions can make it harder to refactor your code later, which can lead to test maintenance nightmares. On the flipside, the presence of a test is a sign that people who are refactoring should tread lightly. It's OK to change the behavior, but they need to realize that their changes will have ramifications to other code.

Sometimes, negative test cases are very important. If you're writing a validator, you would want to know that it rejects bad input. You would also want to know that it accepts good input, so you're likely to have a large family of tests.

Also, I sometimes like to start with a simple test case, and sometimes the negative cases are easiest. To me, it feels like a progression from easy-to-understand (and easy-to-write) to more complicated and more corner-case-y.
Tuesday, July 07, 2009 4:54:10 AM (Pacific Standard Time, UTC-08:00)
FYI: If you order the book from Manning you will get a free e-book PDF version; if you order from Amazon you will get free shipping.

Net result:
Book + eBook from Manning = ~$30
book from Amazon = ~$25
Wednesday, July 08, 2009 7:53:22 AM (Pacific Standard Time, UTC-08:00)
yooder, every print book comes with a coupon inside it to download a free edition of the PDF version, so you *always* get the PDF, as long as you have an original print book.

Roy
Thursday, July 09, 2009 11:59:43 AM (Pacific Standard Time, UTC-08:00)
Awesome, awesome, awesome show guys!
Too bad it's so short, Scott I bet you could talk to Roy about TDD for hours.
However I learned that Roy has some great opinions about the topic and he's not too religious at the same time.

@RoyOsherove: I definitely gotta buy your book!
me
Wednesday, August 12, 2009 5:32:29 PM (Pacific Standard Time, UTC-08:00)
I gone through all your posts.Its really unbelievable.Its very interesting and knowledgeable.Thanks for putting such things into it.Keep it up.
Sunday, August 23, 2009 3:26:26 PM (Pacific Standard Time, UTC-08:00)
Another interesting episode. Thanks.

I tried finding the webcasts you referred to of Roy examining the unit tests of various projects, but to no avail. There doesn't seem to be any reference to them on Roy's blog and they're not linked in the show notes.

Are they publicly available?

Nick
Wednesday, September 02, 2009 9:49:06 PM (Pacific Standard Time, UTC-08:00)
Nick:
all the test reviews are available here
http://www.osherove.com/videos/category/test-review
Comments are closed.

Contact

Sponsors

Hosting By

Hot Topics

Tags

Calendar

<November 2009>
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

Archives

November, 2009 (2)
October, 2009 (19)
September, 2009 (11)
August, 2009 (12)
July, 2009 (21)
June, 2009 (26)
May, 2009 (16)
April, 2009 (13)
March, 2009 (17)
February, 2009 (17)
January, 2009 (18)
December, 2008 (32)
November, 2008 (17)
October, 2008 (22)
September, 2008 (16)
August, 2008 (14)
July, 2008 (25)
June, 2008 (19)
May, 2008 (17)
April, 2008 (17)
March, 2008 (26)
February, 2008 (21)
January, 2008 (28)
December, 2007 (19)
November, 2007 (17)
October, 2007 (31)
September, 2007 (39)
August, 2007 (37)
July, 2007 (43)
June, 2007 (37)
May, 2007 (32)
April, 2007 (38)
March, 2007 (29)
February, 2007 (46)
January, 2007 (31)
December, 2006 (27)
November, 2006 (31)
October, 2006 (32)
September, 2006 (39)
August, 2006 (34)
July, 2006 (40)
June, 2006 (18)
May, 2006 (31)
April, 2006 (34)
March, 2006 (30)
February, 2006 (38)
January, 2006 (44)
December, 2005 (19)
November, 2005 (34)
October, 2005 (24)
September, 2005 (37)
August, 2005 (20)
July, 2005 (24)
June, 2005 (33)
May, 2005 (16)
April, 2005 (22)
March, 2005 (34)
February, 2005 (15)
January, 2005 (37)
December, 2004 (28)
November, 2004 (30)
October, 2004 (34)
September, 2004 (22)
August, 2004 (34)
July, 2004 (18)
June, 2004 (64)
May, 2004 (49)
April, 2004 (21)
March, 2004 (29)
February, 2004 (29)
January, 2004 (36)
December, 2003 (25)
November, 2003 (24)
October, 2003 (59)
September, 2003 (42)
August, 2003 (24)
July, 2003 (44)
June, 2003 (29)
May, 2003 (21)
April, 2003 (30)
March, 2003 (27)
February, 2003 (47)
January, 2003 (50)
December, 2002 (31)
November, 2002 (38)
October, 2002 (44)
September, 2002 (15)
May, 2002 (2)
April, 2002 (4)

Google Ads