Add a mocking framework, to make it possible to test OO classes that have dependencies on...

Status
Not open for further replies.
A

andrew.may

Guest
Without a mocking framework, the amount of labour required to create unit tests for a Class that interacts with other classes can be very high. e.g. if MyClass.cls works with implementations of interfaces IClassOne and IClassTwo, then I need to manually create stub/mock implementations of those 2 interfaces just to be able to test MyClass.cls. This leads to a huge amount of work & means that any changes to the interfaces needs to be duplicated in the sub/mocks as well as in the real implementations. Since ABL doesn't have much in the way of automatic refactoring, the creation & maintenance of these mock/stub classes becomes very hard. (in fact, we abandoned OEUnit because this overhead became so high). In the Java world, the Mockito API makes for very nice test code & is popular enough to have been ported to a variety of different languages ). Something like this would be incredibly useful in ABL. (Originally raised on the forums: https://community.progress.com/technicalusers/f/19/p/11095/42269.aspx#42269)

Continue reading...
 
Status
Not open for further replies.
Top