Refactoring Unit Tests Part 2 Using Object Builder Pattern

Published June 4th, 2009 Under Software Testing | Leave a Comment

In this screencast we will demonstrate how to use the Object Builder pattern to create and setup objects for tests. In the first part we discussed how to introduce the base class for the unit tests to improve readability and cleanness of code.

http://highoncoding.com/Articles/443_Refactoring_Unit_Tests_Part_2_Using_Object_Builder_Pattern.aspx

Refactoring Unit Tests Part 1

Published June 4th, 2009 Under Software Testing | Leave a Comment

In this screencast we will refactor unit tests to make it more readable. It is very important that you refactor your unit tests. Unit test code is not part of the production but refactoring them can help you in the long run and will provide benefits when maintaining the application.

http://highoncoding.com/Articles/442_Refactoring_Unit_Tests_Part_1.aspx

John Ferguson Smart Devoxx Interview

Published June 2nd, 2009 Under Software Testing | Leave a Comment

John Ferguson Smart is a freelance consultant and author of Java Power Tools. During the JavaPosse.com interview John, Dick and Carl talk about Continuous Integration tools, parameterized unit tests and what other test approaches the near future will probably bring.

Learning how to harness the power of NUnit RowTest

Published April 21st, 2009 Under Software Testing | Leave a Comment

In this episode we will take a look at how you can utilize the power of RowTests within NUnit. By learning how to use RowTests you can reduce the amount of duplicate test code which exists when doing data driven tests.

http://www.dimecasts.net/Casts/CastDetails/103

Writing Unit Tests With Test Driven Development

Published March 13th, 2009 Under Software Testing, TDD | Leave a Comment

The video is intended to be an introduction to TDD, and how actually to go about writing tests and code using TDD with Visual Studio. I hear a lot of people using the term “TDD” without really understanding it. They typically are referring to “unit testing” or sometimes even test-first development, neither of which are really TDD.

Download this QuickTime from TestDrivenDeveloper.com

Building a Nant Script – Part 2: Adding NUnit tests

Published January 29th, 2009 Under Software Testing | Leave a Comment

In this episode we will continue our series on how to create a build script using the NAnt build tool. In this episode we will build off the script of Part 1 and add in the ability to run NUnit tests within our script.  You can get the script for this episode here.

http://www.dimecasts.net/Content/WatchEpisode/82

ASP.NET MVC: Episode 3 with Charlie Poole – Returning Blog Entries

Published December 31st, 2008 Under Coding, Software Testing, TDD | Leave a Comment

In this third episode, Stephen Walther and Charlie Poole build tests that verify that their blog can return blog entries. They build unit tests for the case when there are no entries returned and the case when a single entry is returned.

http://www.asp.net/learn/mvc-videos/video-407.aspx

ASP.NET MVC: Episode 2 with Charlie Poole – Creating Unit Tests with NUnit

Published December 31st, 2008 Under Coding, Software Testing, TDD | Leave a Comment

In this second episode, Stephen Walther and Charlie Poole create the ASP.NET MVC application with Visual Studio and run their first unit tests with NUnit. Charlie Poole explains that you can take shorter or longer steps when testing depending on your confidence level.

http://www.asp.net/learn/mvc-videos/video-406.aspx

JUnit Tutorial

Published November 14th, 2008 Under Software Testing | Leave a Comment

A brief tutorial on how to use the JUnit testing framework for Java.

Writing Testable Code

Published November 6th, 2008 Under Coding, Software Testing | Leave a Comment

Misko Hevery made a presentation at Google Tech Talks about unit testing. He tells us that “There is no secret to writing tests… … there are only secrets to writing testable code!”. He describes the different category of tests and shows the importance of unit testing. He describes how to avoid writing untestable code.

Additional resources

Slides of the presentation (requires google account)

Testability-explorer is a tool which analyzes java byte-codes and computes how difficult it will be to write unit-test. It attempts to help you quantitatively determine how hard your code is to test and, where to focus to make it more testable

Misko Hevery blog

« go backkeep looking »