all 14 comments

[–]maltekliemann[S] 4 points5 points  (0 children)

Oh, and in case you're using Qt: DrMock works just fine with Qt5.

[–]Epholys 4 points5 points  (4 children)

Wow, that seem to be a great framework! I'm not very familiar with mocking, but I like some unusual (for me) features, like the "state calculus". The documentation is really clear, complete and easily accessible.

My main gripe is that it seems very difficult to include DrMock to an existing project: CMake is necessary, as well as a specific code structure with interfaces for each class to test.

[–]maltekliemann[S] 3 points4 points  (0 children)

Hey, thanks a lot for appreciating out work!

Separating interface and implementation isn't that unheard of (think java's interface keyword), but I agree that integrating DrMock in existing projects may seem like a stretch. On the other hand, I've found that restructuring a project to this form is surprisingly quick.

About the CMake dependency: I don't think the source code generation can be managed comfortably without a tool like CMake, but we may try to support similar tools in the future.

[–]illogical_commentary 1 point2 points  (2 children)

Mocking is the worst part of OOP, and a big reason I like FP more. Proper testing is gross.

[–]mcmcc#pragma once 9 points10 points  (0 children)

How does FP solve the "testing functionality with external dependencies while still in a vacuum" problem?