Timeline for Implementing TDD for existing code
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 21, 2014 at 21:19 | comment | added | AlfredoCasado | Of course a mocking framework its a very useful tool for isolating code and testing only the subsystem (a class or a small subset of class) you want. But learning to organize your code in the correct way, for example using dependency injection and the other SOLID principles, its really the complex part. | |
Apr 21, 2014 at 6:10 | comment | added | Julious Igmen |
I've just read about Mocking Frameworks and I think this is what I was thinking before asking the question. Say I have a class FooController that connects to a service instance and performs functions that require instances of other classes, how should I approach testing such complex code? I know I need to read and learn more about testing and all, and thanks for the time for answering!
|
|
Apr 21, 2014 at 5:54 | history | answered | AlfredoCasado | CC BY-SA 3.0 |