|
|
Flexible Mock Objects in Ruby
File Details
| Downloads: |
282 |
File Size: |
1.1MB |
| Posted By: |
MikeWo |
Views: |
452 |
| Date Added: |
03-25-2007 |
|
A well designed object oriented program consists of a number of small, collaborative objects working together to accomplish the goals of the software system.ÿ Programs designed in this manner are amazingly flexible, but poise special challenges for testing.ÿ If an object works in collaboration with other objects, testing an object in isolation can become a bit of a challenge. Mock objects are a testing technique that allows an object's collaborators to be "mocked out" for the purpose of testing.ÿ A good mock object framework is able to to this with minimum fuss for the programmer.ÿ This talk will look at the FlexMock framework for Ruby and examine how it adopts a no fuss approach to mocking.
Jim Weirichÿ is a software consultant for Compuware with over twenty-five years of experience in software developement. He has worked with real-time data systems for testing jet engines, networking software for information systems, and image processing software for the financial industry. Weirich is active in the Ruby community and has contributed to several Ruby projects, including the Rake build system and the RubyGems package software.
|
|
|