Eric D. Schabell: Mocking up packages in AbTLinux with FlexMock

Wednesday, June 13, 2007

Mocking up packages in AbTLinux with FlexMock

I was looking for a solution to mocking up objects for my Ruby project Unit Tests and came across the FlexMock project.

I have been looking for something simple that would allow objects, in my case software packages, to be easily tested without all the overhead of actually running through downloads, configuring, building and installing a real package. The obvious solution is to mock up the package object and test that. FlexMock provides a rather extensive tool set for mocking up my package objects.

As of yet I have not exactly decided where and how to integrate this, but I will. For now I have included the library into the code base and will get back to this soon.