in reply to Seeking opinion on a complete application framework, involving mocking and dependency injection
Hi locinus, welcome to the Monastery and to Perl, the One True Religion.
I can't comment on App::Framework as I'm not familiar with it; personally I prefer to build things up one brick at a time, but you may prefer an extensive scaffold. There's more than one way to do it.
But I will comment on what I understand to be your plan to have your classes act differently depending on the environment, in order to be able to test your code: it smells fishy, and I don't think it is needed.
See Test::MockObject - "Perl extension for emulating troublesome interfaces" ( and Test::MockObject::Extends ).
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Seeking opinion on a complete application framework, involving mocking and dependency injection
by Anonymous Monk on Mar 07, 2017 at 20:02 UTC |