Isolation Frameworks: Learning how to validate expectations

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

In this episode we are going to continue our series on learning how to use an isolation framework (Rhino Mocks) to help create simpler and more reliable unit tests. We will focus our learning this time around on the various ways you can setup and validate expectations on your stubs/fakes. Validating these expectations will allow your to confirm in tests your dependencies are being used in the manor expected.

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

Resources
Rhino Mocks Home Page
Episode Source Code

Isolation Frameworks: Learning how to Stub & Fake Data

Published July 20th, 2009 Under Coding, Software Testing | Leave a Comment

In this episode we are going to start learning how to use an isolation framework (Rhino Mocks) to help create simpler and more reliable unit tests. We will start off our learning experience by learning the basics. We will be taking a look at how to setup stubs/fakes in order to hard wire return values for our objects/methods.

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

Resources

Rhino Mocks Home Page
Episode Source Code

Interaction Based Testing

Published September 1st, 2008 Under Software Testing | Leave a Comment

The 2nd Annual Google Test Automation Conference (GTAC) in New York on August 23 and 24, 2007. In the world of developer-facing automated tests, IBT is arguably one of the most controversial topics. One side claims that “pure” unit testing is a way to ensure that code behaves as specified, providing design and maintenance benefits as well. Another group claims that IBT is a great way to generate code bloat and test things that do not need to be tested. Matt and Sean will try to go beyond the clichés and hype of “Mock Always” verses “Mock Never.” Instead, they’ll strive to find the appropriate places to use IBT, and pass on some tools to help you with your ultimate decision. Along the way, they will cover some common mistakes, anti-patterns, and things to consider.

« go back